#include <itkFloodFilledFunctionConditionalConstIterator.h>
Inheritance diagram for itk::FloodFilledFunctionConditionalConstIterator:
Public Types | |
typedef FloodFilledFunctionConditionalConstIterator | Self |
typedef TFunction | FunctionType |
typedef TFunction::InputType | FunctionInputType |
typedef TImage::IndexType | IndexType |
typedef TImage::SizeType | SizeType |
typedef TImage::RegionType | RegionType |
typedef TImage | ImageType |
typedef TImage::InternalPixelType | InternalPixelType |
typedef TImage::PixelType | PixelType |
Public Methods | |
itkStaticConstMacro (NDimensions, unsigned int, TImage::ImageDimension) | |
FloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex) | |
FloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr) | |
void | FindSeedPixel () |
void | InitializeIterator () |
virtual | ~FloodFilledFunctionConditionalConstIterator () |
virtual bool | IsPixelIncluded (const IndexType &index) const=0 |
Self & | operator= (const Self &it) |
const IndexType | GetIndex () |
const PixelType & | Get (void) const |
bool | IsAtEnd () |
void | GoToBegin () |
void | operator++ () |
void | DoFloodStep () |
Static Public Methods | |
unsigned int | GetIteratorDimension () |
Protected Types | |
typedef Image< unsigned char, itkGetStaticConstMacro(NDimensions) | TTempImage ) |
Protected Attributes | |
SmartPointer< FunctionType > | m_Function |
TTempImage::Pointer | tempPtr |
IndexType | m_StartIndex |
const double * | m_ImageOrigin |
const double * | m_ImageSpacing |
const unsigned long int * | m_ImageSize |
std::stack< IndexType > | m_IndexStack |
FunctionInputType | m_LocationVector |
bool | m_FoundUncheckedNeighbor |
bool | m_IsValidIndex |
Definition at line 38 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
Type of vector used to store location info in the spatial function Reimplemented in itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 49 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
|
|
|
|
|
|
|
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 177 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
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" |
|
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 |
|
Default Destructor. Definition at line 98 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType. |
|
Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++(). |
|
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 image's LargestPossibleRegion and applying the IsPixelIncluded() test. |
|
Get the pixel value Implements itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 123 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::ConditionalConstIterator< TImage >::m_Image, and itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack. |
|
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 119 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack. |
|
Get the dimension (size) of the index. Reimplemented from itk::ConditionalConstIterator< TImage >. Definition at line 112 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Move an iterator to the beginning of the region. "Begin" is defined as the first pixel in the region. Definition at line 132 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded(), itk::ConditionalConstIterator< TImage >::m_Image, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack, itk::ConditionalConstIterator< TImage >::m_IsAtEnd, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_StartIndex, and itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::tempPtr. |
|
Initializes the iterator, called from constructor |
|
Is the iterator at the end of the region? Implements itk::ConditionalConstIterator< TImage >. Definition at line 127 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::ConditionalConstIterator< TImage >::m_IsAtEnd. |
|
Compute whether the index of interest should be included in the flood Implements itk::ConditionalConstIterator< TImage >. Implemented in itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin(). |
|
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 from itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >. |
|
Walk forward one index Implements itk::ConditionalConstIterator< TImage >. Definition at line 163 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep(). |
|
operator= is provided to make sure the handle to the image is properly reference counted. Reimplemented from itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >. Definition at line 105 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::ConditionalConstIterator< TImage >::m_Image, and itk::ConditionalConstIterator< TImage >::m_Region. |
|
Indicates whether or not we've found a neighbor that needs to be checked. Definition at line 199 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Smart pointer to the function we're evaluating Definition at line 170 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
The origin of the source image Definition at line 184 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Size of the source image Definition at line 190 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
The spacing of the source image Definition at line 187 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
Indicates whether or not an index is valid (inside an image)/ Definition at line 202 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Location vector used in the flood algorithm Definition at line 196 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
A known seed location to start the recursive fill Definition at line 181 of file itkFloodFilledFunctionConditionalConstIterator.h. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin(). |
|
Definition at line 178 of file itkFloodFilledFunctionConditionalConstIterator.h. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin(). |