ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkFloodFilledFunctionConditionalConstIterator.h>
Iterates over a flood-filled spatial function.
Definition at line 39 of file itkFloodFilledFunctionConditionalConstIterator.h.
Public Types | |
typedef TFunction::InputType | FunctionInputType |
typedef TFunction | FunctionType |
typedef TImage | ImageType |
typedef TImage::IndexType | IndexType |
typedef TImage::InternalPixelType | InternalPixelType |
typedef TImage::PixelType | PixelType |
typedef TImage::RegionType | RegionType |
typedef std::vector< IndexType > | SeedsContainerType |
typedef FloodFilledFunctionConditionalConstIterator | Self |
typedef TImage::SizeType | SizeType |
Public Types inherited from itk::ConditionalConstIterator< TImage > | |
typedef TImage | ImageType |
typedef TImage::IndexType | IndexType |
typedef TImage::InternalPixelType | InternalPixelType |
typedef TImage::PixelType | PixelType |
typedef TImage::RegionType | RegionType |
typedef ConditionalConstIterator | Self |
typedef TImage::SizeType | SizeType |
Static Public Member Functions | |
static unsigned int | GetIteratorDimension () |
Static Public Member Functions inherited from itk::ConditionalConstIterator< TImage > | |
static unsigned int | GetIteratorDimension (void) |
Static Public Attributes | |
static const unsigned int | NDimensions = TImage::ImageDimension |
Static Public Attributes inherited from itk::ConditionalConstIterator< TImage > | |
static const unsigned int | NDimension = TImage::ImageDimension |
Protected Types | |
typedef Image< unsigned char, itkGetStaticConstMacro(NDimensions) > | TTempImage |
Protected Attributes | |
bool | m_FoundUncheckedNeighbor |
SmartPointer< FunctionType > | m_Function |
ImageType::PointType | m_ImageOrigin |
RegionType | m_ImageRegion |
ImageType::SpacingType | m_ImageSpacing |
std::queue< IndexType > | m_IndexStack |
bool | m_IsValidIndex |
FunctionInputType | m_LocationVector |
SeedsContainerType | m_Seeds |
TTempImage::Pointer | m_TemporaryPointer |
Protected Attributes inherited from itk::ConditionalConstIterator< TImage > | |
ImageType::ConstWeakPointer | m_Image |
bool | m_IsAtEnd |
RegionType | m_Region |
typedef TFunction::InputType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType |
Type of vector used to store location info in the spatial function
Definition at line 51 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TFunction itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionType |
Type of function
Definition at line 48 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TImage itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ImageType |
Image typedef support.
Definition at line 66 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType |
Index typedef support.
Definition at line 54 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::InternalPixelType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType |
Internal Pixel Type
Definition at line 69 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::PixelType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::PixelType |
External Pixel Type
Definition at line 72 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::RegionType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::RegionType |
Region typedef support
Definition at line 63 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef std::vector<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SeedsContainerType |
Index ContainerType
Definition at line 57 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef FloodFilledFunctionConditionalConstIterator itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Self |
Standard class typedefs.
Definition at line 45 of file itkFloodFilledFunctionConditionalConstIterator.h.
typedef TImage::SizeType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SizeType |
Size typedef support.
Definition at line 60 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
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 232 of file itkFloodFilledFunctionConditionalConstIterator.h.
itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledFunctionConditionalConstIterator | ( | 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::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledFunctionConditionalConstIterator | ( | const ImageType * | imagePtr, |
FunctionType * | fnPtr, | ||
std::vector< IndexType > & | startIndices | ||
) |
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
itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledFunctionConditionalConstIterator | ( | 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
|
inlinevirtual |
Default Destructor.
Definition at line 113 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inline |
Put more seeds on the list
Definition at line 161 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inline |
Clear all the seeds
Definition at line 173 of file itkFloodFilledFunctionConditionalConstIterator.h.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep | ( | ) |
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixel | ( | ) |
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 | ( | ) |
Automatically find all seed pixels.
|
inlinevirtual |
Get the pixel value
Implements itk::ConditionalConstIterator< TImage >.
Reimplemented in itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >, and itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >.
Definition at line 153 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inlinevirtual |
Definition at line 218 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inlinevirtual |
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 149 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inlinestatic |
Get the dimension (size) of the index.
Definition at line 142 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inlinevirtual |
get the seed container
Definition at line 167 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inline |
Move an iterator to the beginning of the region. "Begin" is defined as the first pixel in the region.
Definition at line 180 of file itkFloodFilledFunctionConditionalConstIterator.h.
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InitializeIterator | ( | ) |
Initializes the iterator, called from constructor
|
inlinevirtual |
Is the iterator at the end of the region?
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 157 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
pure virtual |
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 >.
|
inlinevirtual |
Walk forward one index
Implements itk::ConditionalConstIterator< TImage >.
Definition at line 213 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
inline |
operator= is provided to make sure the handle to the image is properly reference counted.
Definition at line 120 of file itkFloodFilledFunctionConditionalConstIterator.h.
References itk::ConditionalConstIterator< TImage >::m_Image, and itk::ConditionalConstIterator< TImage >::m_Region.
|
protected |
Indicates whether or not we've found a neighbor that needs to be checked.
Definition at line 255 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Smart pointer to the function we're evaluating
Definition at line 225 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
The origin of the source image
Definition at line 239 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Region of the source image
Definition at line 245 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
The spacing of the source image
Definition at line 242 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Stack used to hold the path of the iterator through the image
Definition at line 248 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Indicates whether or not an index is valid (inside an image)/
Definition at line 258 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Location vector used in the flood algorithm
Definition at line 251 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
A list of locations to start the recursive fill
Definition at line 236 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
protected |
Definition at line 233 of file itkFloodFilledFunctionConditionalConstIterator.h.
|
static |
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 78 of file itkFloodFilledFunctionConditionalConstIterator.h.