#include <itkFloodFilledFunctionConditionalConstIterator.h>
Inheritance diagram for itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >:
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 Member Functions | |
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 () |
virtual SmartPointer< FunctionType > | GetFunction () const |
void | AddSeed (const IndexType seed) |
void | ClearSeeds () |
Static Public Member Functions | |
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 |
ImageType::PointType | m_ImageOrigin |
ImageType::SpacingType | m_ImageSpacing |
RegionType | m_ImageRegion |
std::queue< 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::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 50 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
Image typedef support. Reimplemented from itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 62 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
Internal Pixel Type Reimplemented from itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 65 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
External Pixel Type Reimplemented from itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 68 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
|
Size typedef support. Reimplemented from itk::ConditionalConstIterator< TImage >. Reimplemented in itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >, itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >. Definition at line 56 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 208 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 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, and itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Self. |
|
Put more seeds on the list Definition at line 143 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Clear all the seeds Definition at line 150 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
|
|
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 135 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Definition at line 193 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
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 131 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Get the dimension (size) of the index. Reimplemented from itk::ConditionalConstIterator< TImage >. Definition at line 124 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 158 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Initializes the iterator, called from constructor |
|
Is the iterator at the end of the region? Implements itk::ConditionalConstIterator< TImage >. Definition at line 139 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
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 >. |
|
Walk forward one index Implements itk::ConditionalConstIterator< TImage >. Definition at line 188 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
operator= is provided to make sure the handle to the image is properly reference counted. Reimplemented from itk::ConditionalConstIterator< TImage >. 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 230 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Smart pointer to the function we're evaluating Definition at line 201 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
The origin of the source image Definition at line 215 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Region of the source image Definition at line 221 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
The spacing of the source image Definition at line 218 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Stack used to hold the path of the iterator through the image Definition at line 224 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Indicates whether or not an index is valid (inside an image)/ Definition at line 233 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Location vector used in the flood algorithm Definition at line 227 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
A list of locations to start the recursive fill Definition at line 212 of file itkFloodFilledFunctionConditionalConstIterator.h. |
|
Definition at line 209 of file itkFloodFilledFunctionConditionalConstIterator.h. |