Iterates over a flood-filled spatial function. More...
#include <itkFloodFilledSpatialFunctionConditionalConstIterator.h>
Iterates over a flood-filled spatial function.
Definition at line 33 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::FunctionInputType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType |
Type of vector used to store location info in the spatial function
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 45 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::FunctionType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::FunctionType |
Type of function
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 42 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::ImageType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::ImageType |
Image typedef support.
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 57 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::IndexType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::IndexType |
Index typedef support.
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 48 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::InternalPixelType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType |
Internal Pixel Type
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 60 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::PixelType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::PixelType |
External Pixel Type
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 63 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::RegionType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::RegionType |
Region typedef support
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 54 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef FloodFilledSpatialFunctionConditionalConstIterator itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::Self |
Standard class typedefs.
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 38 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Superclass::SizeType itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SizeType |
Size typedef support.
Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 51 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef FloodFilledFunctionConditionalConstIterator<TImage, TFunction> itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::Superclass |
Reimplemented in itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 39 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
typedef Image<unsigned char, itkGetStaticConstMacro(NDimensions)> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::TTempImage [protected, inherited] |
A temporary image used for storing info about indices 0 = pixel has not yet been processed 1 = pixel is not inside the function 2 = pixel is inside the function, neighbor check incomplete 3 = pixel is inside the function, neighbor check complete
Definition at line 210 of file itkFloodFilledFunctionConditionalConstIterator.h.
itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledSpatialFunctionConditionalConstIterator | ( | const ImageType * | imagePtr, | |
FunctionType * | fnPtr, | |||
IndexType | startIndex | |||
) |
Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor uses an explicit seed pixel for the flood fill, the "startIndex"
itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledSpatialFunctionConditionalConstIterator | ( | const ImageType * | imagePtr, | |
FunctionType * | fnPtr | |||
) |
Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor should be used when the seed pixel is unknown.
virtual itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::~FloodFilledSpatialFunctionConditionalConstIterator | ( | ) | [inline, virtual] |
Default Destructor.
Definition at line 79 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::AddSeed | ( | const IndexType | seed | ) | [inline, inherited] |
Put more seeds on the list
Definition at line 144 of file itkFloodFilledFunctionConditionalConstIterator.h.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ClearSeeds | ( | ) | [inline, inherited] |
Clear all the seeds
Definition at line 150 of file itkFloodFilledFunctionConditionalConstIterator.h.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep | ( | ) | [inherited] |
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixel | ( | ) | [inherited] |
Automatically find a seed pixel and set m_StartIndex. Does nothing if a seed pixel isn't found. A seed pixel is determined by traversing the input image's LargestPossibleRegion and applying the IsPixelIncluded() test.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixels | ( | ) | [inherited] |
Automatically find all seed pixels.
const PixelType& itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Get | ( | void | ) | const [inline, virtual, inherited] |
Get the pixel value
Implements itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 136 of file itkFloodFilledFunctionConditionalConstIterator.h.
virtual SmartPointer<FunctionType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetFunction | ( | ) | const [inline, virtual, inherited] |
Definition at line 195 of file itkFloodFilledFunctionConditionalConstIterator.h.
const IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIndex | ( | void | ) | [inline, virtual, inherited] |
Get the index. This provides a read only reference to the index. This causes the index to be calculated from pointer arithmetic and is therefore an expensive operation.
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 132 of file itkFloodFilledFunctionConditionalConstIterator.h.
static unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIteratorDimension | ( | ) | [inline, static, inherited] |
Get the dimension (size) of the index.
Reimplemented from itk::ConditionalConstIterator< TImage >.
Definition at line 125 of file itkFloodFilledFunctionConditionalConstIterator.h.
References HardConnectedComponentImageFilter::ImageDimension.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin | ( | void | ) | [inline, inherited] |
Move an iterator to the beginning of the region. "Begin" is defined as the first pixel in the region.
Definition at line 157 of file itkFloodFilledFunctionConditionalConstIterator.h.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InitializeIterator | ( | ) | [inherited] |
Initializes the iterator, called from constructor
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsAtEnd | ( | ) | [inline, virtual, inherited] |
Is the iterator at the end of the region?
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 140 of file itkFloodFilledFunctionConditionalConstIterator.h.
bool itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded | ( | const IndexType & | index | ) | const [virtual] |
Compute whether the index of interest should be included in the flood
Implements itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++ | ( | ) | [inline, virtual, inherited] |
Walk forward one index
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 190 of file itkFloodFilledFunctionConditionalConstIterator.h.
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetCenterInclusionStrategy | ( | ) | [inline] |
Set the inclusion strategy to center
Definition at line 88 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetCompleteInclusionStrategy | ( | ) | [inline] |
Set the inclusion strategy to complete
Definition at line 91 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetIntersectInclusionStrategy | ( | ) | [inline] |
Set the inclusion strategy to intersect
Definition at line 94 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetOriginInclusionStrategy | ( | ) | [inline] |
Set the inclusion strategy to origin
Definition at line 85 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_FoundUncheckedNeighbor [protected, inherited] |
Indicates whether or not we've found a neighbor that needs to be checked.
Definition at line 233 of file itkFloodFilledFunctionConditionalConstIterator.h.
SmartPointer<FunctionType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Function [protected, inherited] |
Smart pointer to the function we're evaluating
Definition at line 203 of file itkFloodFilledFunctionConditionalConstIterator.h.
ImageType::ConstWeakPointer itk::ConditionalConstIterator< TImage >::m_Image [protected, inherited] |
Smart pointer to the source image.
Definition at line 104 of file itkConditionalConstIterator.h.
Referenced by itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), and itk::ConditionalConstIterator< TImage >::operator=().
ImageType::PointType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageOrigin [protected, inherited] |
The origin of the source image
Definition at line 217 of file itkFloodFilledFunctionConditionalConstIterator.h.
RegionType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageRegion [protected, inherited] |
Region of the source image
Definition at line 223 of file itkFloodFilledFunctionConditionalConstIterator.h.
ImageType::SpacingType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageSpacing [protected, inherited] |
The spacing of the source image
Definition at line 220 of file itkFloodFilledFunctionConditionalConstIterator.h.
unsigned char itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::m_InclusionStrategy [protected] |
How the pixel (index) is examined in order to decide whether or not it's included. The strategies are: 0) Origin: if the origin of the pixel in physical space is inside the function, then the pixel is inside the function 1) Center: if the center of a pixel, in physical space, is inside the function, then the pixel is inside the function 2) Complete: if all of the corners of the pixel in physical space are inside the function, then the pixel is inside the function 3) Intersect: if any of the corners of the pixel in physical space are inside the function, then the pixel is inside the function
Definition at line 109 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.
std::queue<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack [protected, inherited] |
Stack used to hold the path of the iterator through the image
Definition at line 226 of file itkFloodFilledFunctionConditionalConstIterator.h.
bool itk::ConditionalConstIterator< TImage >::m_IsAtEnd [protected, inherited] |
Is the iterator at the end of its walk?
Definition at line 110 of file itkConditionalConstIterator.h.
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IsValidIndex [protected, inherited] |
Indicates whether or not an index is valid (inside an image)/
Definition at line 236 of file itkFloodFilledFunctionConditionalConstIterator.h.
FunctionInputType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_LocationVector [protected, inherited] |
Location vector used in the flood algorithm
Definition at line 229 of file itkFloodFilledFunctionConditionalConstIterator.h.
RegionType itk::ConditionalConstIterator< TImage >::m_Region [protected, inherited] |
Region type to iterate over.
Definition at line 107 of file itkConditionalConstIterator.h.
Referenced by itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator=(), and itk::ConditionalConstIterator< TImage >::operator=().
std::vector<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_StartIndices [protected, inherited] |
A list of locations to start the recursive fill
Definition at line 214 of file itkFloodFilledFunctionConditionalConstIterator.h.
TTempImage::Pointer itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_TemporaryPointer [protected, inherited] |
Definition at line 211 of file itkFloodFilledFunctionConditionalConstIterator.h.
const unsigned int itk::ConditionalConstIterator< TImage >::NDimension = TImage::ImageDimension [static, inherited] |
Dimension of the image the iterator walks. This constant is needed so that functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.
Definition at line 47 of file itkConditionalConstIterator.h.
const unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::NDimensions = TImage::ImageDimension [static, inherited] |
Dimension of the image the iterator walks. This constant is needed so that functions that are templated over image iterator type (as opposed to being templated over pixel type and dimension) can have compile time access to the dimension of the image that the iterator walks.
Reimplemented in itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >.
Definition at line 75 of file itkFloodFilledFunctionConditionalConstIterator.h.