Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction > Class Template Reference
[Image Iterators]

Iterates over a flood-filled spatial function. More...

#include <itkFloodFilledFunctionConditionalConstIterator.h>

Inheritance diagram for itk::FloodFilledFunctionConditionalConstIterator:

Inheritance graph
[legend]
Collaboration diagram for itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >:

Collaboration graph
[legend]
List of all members.

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
Selfoperator= (const Self &it)
const IndexType GetIndex ()
const PixelTypeGet (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< FunctionTypem_Function
TTempImage::Pointer tempPtr
IndexType m_StartIndex
const double * m_ImageOrigin
const double * m_ImageSpacing
const unsigned long int * m_ImageSize
std::stack< IndexTypem_IndexStack
FunctionInputType m_LocationVector
bool m_FoundUncheckedNeighbor
bool m_IsValidIndex

Detailed Description

template<class TImage, class TFunction>
class itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >

Iterates over a flood-filled spatial function.

Definition at line 38 of file itkFloodFilledFunctionConditionalConstIterator.h.


Member Typedef Documentation

template<class TImage, class TFunction>
typedef TFunction::InputType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType
 

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.

template<class TImage, class TFunction>
typedef TFunction itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionType
 

Type of 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 46 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef TImage itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ImageType
 

Image typedef support.

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 61 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef TImage::IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType
 

Index typedef support.

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 52 of file itkFloodFilledFunctionConditionalConstIterator.h.

Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::~FloodFilledFunctionConditionalConstIterator().

template<class TImage, class TFunction>
typedef TImage::InternalPixelType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType
 

Internal Pixel Type

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 64 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef TImage::PixelType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::PixelType
 

External Pixel Type

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 67 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef TImage::RegionType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::RegionType
 

Region typedef support

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 58 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef FloodFilledFunctionConditionalConstIterator itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Self
 

Standard class typedefs.

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 43 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef TImage::SizeType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SizeType
 

Size typedef support.

Reimplemented from itk::ConditionalConstIterator< TImage >.

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 55 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
typedef Image<unsigned char, itkGetStaticConstMacro(NDimensions) itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::TTempImage) [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 177 of file itkFloodFilledFunctionConditionalConstIterator.h.


Constructor & Destructor Documentation

template<class TImage, class TFunction>
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"

template<class TImage, class TFunction>
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

template<class TImage, class TFunction>
virtual itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::~FloodFilledFunctionConditionalConstIterator   [inline, virtual]
 

Default Destructor.

Definition at line 98 of file itkFloodFilledFunctionConditionalConstIterator.h.

References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType.


Member Function Documentation

template<class TImage, class TFunction>
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep  
 

Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++().

template<class TImage, class TFunction>
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 image's LargestPossibleRegion and applying the IsPixelIncluded() test.

template<class TImage, class TFunction>
const PixelType& itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Get void    const [inline, virtual]
 

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.

template<class TImage, class TFunction>
const IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIndex void    [inline, virtual]
 

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.

See also:
SetIndex

Implements itk::ConditionalConstIterator< TImage >.

Definition at line 119 of file itkFloodFilledFunctionConditionalConstIterator.h.

References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack.

template<class TImage, class TFunction>
unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIteratorDimension   [inline, static]
 

Get the dimension (size) of the index.

Reimplemented from itk::ConditionalConstIterator< TImage >.

Definition at line 112 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin void    [inline]
 

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.

template<class TImage, class TFunction>
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InitializeIterator  
 

Initializes the iterator, called from constructor

template<class TImage, class TFunction>
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsAtEnd   [inline, virtual]
 

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.

template<class TImage, class TFunction>
virtual bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded const IndexType   index const [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 >.

Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin().

template<class TImage, class TFunction>
itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::itkStaticConstMacro NDimensions   ,
unsigned    int,
TImage::ImageDimension   
 

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 >.

template<class TImage, class TFunction>
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++   [inline, virtual]
 

Walk forward one index

Implements itk::ConditionalConstIterator< TImage >.

Definition at line 163 of file itkFloodFilledFunctionConditionalConstIterator.h.

References itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep().

template<class TImage, class TFunction>
Self& itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator= const Self   it [inline]
 

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.


Member Data Documentation

template<class TImage, class TFunction>
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_FoundUncheckedNeighbor [protected]
 

Indicates whether or not we've found a neighbor that needs to be checked.

Definition at line 199 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
SmartPointer<FunctionType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Function [protected]
 

Smart pointer to the function we're evaluating

Definition at line 170 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
const double* itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageOrigin [protected]
 

The origin of the source image

Definition at line 184 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
const unsigned long int* itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageSize [protected]
 

Size of the source image

Definition at line 190 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
const double* itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageSpacing [protected]
 

The spacing of the source image

Definition at line 187 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
std::stack<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack [protected]
 

Stack used to hold the path of the iterator through the image

Definition at line 193 of file itkFloodFilledFunctionConditionalConstIterator.h.

Referenced by itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Get(), itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Get(), itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >::Get(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Get(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIndex(), itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin(), itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Set(), itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Set(), and itk::FloodFilledFunctionConditionalIterator< TImage, TFunction >::Set().

template<class TImage, class TFunction>
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IsValidIndex [protected]
 

Indicates whether or not an index is valid (inside an image)/

Definition at line 202 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
FunctionInputType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_LocationVector [protected]
 

Location vector used in the flood algorithm

Definition at line 196 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage, class TFunction>
IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_StartIndex [protected]
 

A known seed location to start the recursive fill

Definition at line 181 of file itkFloodFilledFunctionConditionalConstIterator.h.

Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin().

template<class TImage, class TFunction>
TTempImage::Pointer itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::tempPtr [protected]
 

Definition at line 178 of file itkFloodFilledFunctionConditionalConstIterator.h.

Referenced by itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin().


The documentation for this class was generated from the following file:
Generated at Wed Mar 12 01:16:13 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000