#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, std::vector< IndexType > &startIndices) | |
FloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr) | |
void | FindSeedPixel () |
void | FindSeedPixels () |
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 () |
void | AddSeed (const IndexType seed) |
void | ClearSeeds () |
Static Public Methods | |
unsigned int | GetIteratorDimension () |
Protected Types | |
typedef Image< unsigned char, itkGetStaticConstMacro(NDimensions) | TTempImage ) |
Protected Attributes | |
SmartPointer< FunctionType > | m_Function |
TTempImage::Pointer | tempPtr |
std::vector< IndexType > | m_StartIndices |
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 39 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 50 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 201 of file itkFloodFilledFunctionConditionalConstIterator.h. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++(). |
|
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 uses a list of seed pixels for the flood fill |
|
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 109 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType. |
|
Put more seeds on the list Definition at line 142 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_StartIndices. |
|
Clear all the seeds Definition at line 149 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_StartIndices. |
|
|
|
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. |
|
Automatically find all seed pixels. |
|
Get the pixel value Implements itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 134 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 130 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 123 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 157 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack. |
|
Initializes the iterator, called from constructor |
|
Is the iterator at the end of the region? Implements itk::ConditionalConstIterator< TImage >. Definition at line 138 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 >. |
|
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 187 of file itkFloodFilledFunctionConditionalConstIterator.h. References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Function, itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::tempPtr, and itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::TTempImage. |
|
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 116 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 223 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Smart pointer to the function we're evaluating Definition at line 194 of file itkFloodFilledFunctionConditionalConstIterator.h. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++(). |
|
The origin of the source image Definition at line 208 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Size of the source image Definition at line 214 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
The spacing of the source image Definition at line 211 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
Indicates whether or not an index is valid (inside an image)/ Definition at line 226 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Location vector used in the flood algorithm Definition at line 220 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
A list of locations to start the recursive fill Definition at line 205 of file itkFloodFilledFunctionConditionalConstIterator.h. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::AddSeed(), and itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ClearSeeds(). |
|
Definition at line 202 of file itkFloodFilledFunctionConditionalConstIterator.h. Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++(). |