ITK
5.2.0
Insight Toolkit
|
#include <itkImageRandomConstIteratorWithIndex.h>
A multi-dimensional image iterator that visits a random set of pixels within an image region.
ImageRandomConstIteratorWithIndex is a multi-dimensional iterator class that is templated over image type. ImageRandomConstIteratorWithIndex is constrained to walk only within the specified region. It samples random pixel positions at each increment or decrement.
ImageRandomConstIteratorWithIndex assumes a particular layout of the image data. The is arranged in a 1D array as if it were [][][][slice][row][col] with Index[0] = col, Index[1] = row, Index[2] = slice, etc.
The operator++ method provides a simple syntax for walking around a region of a multidimensional image. operator++ performs a jump to a random position within the specified image region. This is designed to facilitate the extraction of random samples from the image.
This is the typical use of this iterator in a loop:
or
Definition at line 116 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::AccessorType = typename Superclass::AccessorType |
Definition at line 133 of file itkImageRandomConstIteratorWithIndex.h.
|
private |
Default constructor. Needed since we provide a cast constructor.
Definition at line 230 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::ImageType = typename Superclass::ImageType |
Definition at line 128 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::IndexType = typename Superclass::IndexType |
Inherit types from the superclass
Definition at line 124 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::IndexValueType = typename Superclass::IndexValueType |
Definition at line 134 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::InternalPixelType = typename Superclass::InternalPixelType |
Definition at line 131 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::OffsetType = typename Superclass::OffsetType |
Definition at line 126 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::OffsetValueType = typename Superclass::OffsetValueType |
Definition at line 135 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::PixelContainer = typename Superclass::PixelContainer |
Definition at line 129 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::PixelContainerPointer = typename Superclass::PixelContainerPointer |
Definition at line 130 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::PixelType = typename Superclass::PixelType |
Definition at line 132 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::RegionType = typename Superclass::RegionType |
Definition at line 127 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::Self = ImageRandomConstIteratorWithIndex |
Standard class type aliases.
Definition at line 120 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::SizeType = typename Superclass::SizeType |
Definition at line 125 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::SizeValueType = typename Superclass::SizeValueType |
Definition at line 136 of file itkImageRandomConstIteratorWithIndex.h.
using itk::ImageRandomConstIteratorWithIndex< TImage >::Superclass = ImageConstIteratorWithIndex<TImage> |
Definition at line 121 of file itkImageRandomConstIteratorWithIndex.h.
itk::ImageRandomConstIteratorWithIndex< TImage >::ImageRandomConstIteratorWithIndex | ( | ) |
Default constructor. Needed since we provide a cast constructor.
|
overridedefault |
Default constructor. Needed since we provide a cast constructor.
itk::ImageRandomConstIteratorWithIndex< TImage >::ImageRandomConstIteratorWithIndex | ( | const ImageType * | ptr, |
const RegionType & | region | ||
) |
Constructor establishes an iterator to walk a particular image and a particular region of that image.
|
inline |
Constructor that can be used to cast from an ImageIterator to an ImageRandomConstIteratorWithIndex. Many routines return an ImageIterator, but for a particular task, you may want an ImageRandomConstIteratorWithIndex. Rather than provide overloaded APIs that return different types of Iterators, itk returns ImageIterators and uses constructors to cast from an ImageIterator to a ImageRandomConstIteratorWithIndex.
Definition at line 153 of file itkImageRandomConstIteratorWithIndex.h.
References itk::ImageConstIteratorWithIndex< TImage >::operator=().
SizeValueType itk::ImageRandomConstIteratorWithIndex< TImage >::GetNumberOfSamples | ( | ) | const |
Default constructor. Needed since we provide a cast constructor.
|
inline |
Move an iterator to the beginning of the region.
Definition at line 160 of file itkImageRandomConstIteratorWithIndex.h.
|
inline |
Move an iterator to one position past the End of the region.
Definition at line 169 of file itkImageRandomConstIteratorWithIndex.h.
|
inline |
Is the iterator at the beginning of the region?
Definition at line 178 of file itkImageRandomConstIteratorWithIndex.h.
|
inline |
Is the iterator at the end of the region?
Definition at line 185 of file itkImageRandomConstIteratorWithIndex.h.
|
inline |
Increment (prefix) the selected dimension. No bounds checking is performed.
Definition at line 193 of file itkImageRandomConstIteratorWithIndex.h.
|
inline |
Decrement (prefix) the selected dimension. No bounds checking is performed.
Definition at line 204 of file itkImageRandomConstIteratorWithIndex.h.
|
private |
Default constructor. Needed since we provide a cast constructor.
void itk::ImageRandomConstIteratorWithIndex< TImage >::ReinitializeSeed | ( | ) |
Reinitialize the seed of the random number generator
void itk::ImageRandomConstIteratorWithIndex< TImage >::ReinitializeSeed | ( | int | ) |
Default constructor. Needed since we provide a cast constructor.
void itk::ImageRandomConstIteratorWithIndex< TImage >::SetNumberOfSamples | ( | SizeValueType | number | ) |
Set/Get number of random samples to get from the image region
|
private |
Default constructor. Needed since we provide a cast constructor.
Definition at line 231 of file itkImageRandomConstIteratorWithIndex.h.
|
private |
Default constructor. Needed since we provide a cast constructor.
Definition at line 234 of file itkImageRandomConstIteratorWithIndex.h.
|
private |
Default constructor. Needed since we provide a cast constructor.
Definition at line 233 of file itkImageRandomConstIteratorWithIndex.h.
|
private |
Default constructor. Needed since we provide a cast constructor.
Definition at line 232 of file itkImageRandomConstIteratorWithIndex.h.