ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes | List of all members
itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction > Class Template Referenceabstract

#include <itkFloodFilledFunctionConditionalConstIterator.h>

+ Inheritance diagram for itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >:
+ Collaboration diagram for itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >:

Detailed Description

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

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

Public Member Functions

void AddSeed (const IndexType &seed)
 
void ClearSeeds ()
 
void DoFloodStep ()
 
void FindSeedPixel ()
 
void FindSeedPixels ()
 
 FloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 
 FloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndices)
 
 FloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr)
 
const PixelType Get (void) const
 
virtual SmartPointer
< FunctionType
GetFunction () const
 
const IndexType GetIndex ()
 
virtual const SeedsContainerTypeGetSeeds () const
 
void GoToBegin ()
 
void InitializeIterator ()
 
bool IsAtEnd ()
 
virtual bool IsPixelIncluded (const IndexType &index) const =0
 
void operator++ ()
 
virtual ~FloodFilledFunctionConditionalConstIterator ()
 
Selfoperator= (const Self &it)
 
- Public Member Functions inherited from itk::ConditionalConstIterator< TImage >
 ConditionalConstIterator ()
 
Selfoperator= (const Self &it)
 
virtual ~ConditionalConstIterator ()
 

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< FunctionTypem_Function
 
ImageType::PointType m_ImageOrigin
 
RegionType m_ImageRegion
 
ImageType::SpacingType m_ImageSpacing
 
std::queue< IndexTypem_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
 

Member Typedef Documentation

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

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

Type of function

Definition at line 48 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Image typedef support.

Definition at line 66 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Index typedef support.

Definition at line 54 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Internal Pixel Type

Definition at line 69 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

External Pixel Type

Definition at line 72 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Region typedef support

Definition at line 63 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<typename TImage , typename TFunction >
typedef std::vector<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SeedsContainerType

Index ContainerType

Definition at line 57 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Standard class typedefs.

Definition at line 45 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Size typedef support.

Definition at line 60 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<typename TImage , typename 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 232 of file itkFloodFilledFunctionConditionalConstIterator.h.

Constructor & Destructor Documentation

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

template<typename TImage , typename 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<typename TImage , typename TFunction >
virtual itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::~FloodFilledFunctionConditionalConstIterator ( )
inlinevirtual

Default Destructor.

Definition at line 113 of file itkFloodFilledFunctionConditionalConstIterator.h.

Member Function Documentation

template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::AddSeed ( const IndexType seed)
inline
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ClearSeeds ( )
inline
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep ( )
template<typename TImage , typename 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 LargestPossibleRegion and applying the IsPixelIncluded() test.

template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixels ( )

Automatically find all seed pixels.

template<typename TImage , typename TFunction >
const PixelType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Get ( void  ) const
inlinevirtual
template<typename TImage , typename TFunction >
virtual SmartPointer< FunctionType > itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetFunction ( ) const
inlinevirtual
template<typename TImage , typename TFunction >
const IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIndex ( void  )
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.

See Also
SetIndex

Implements itk::ConditionalConstIterator< TImage >.

Definition at line 149 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

template<typename TImage , typename TFunction >
static unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIteratorDimension ( void  )
inlinestatic

Get the dimension (size) of the index.

Definition at line 142 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<typename TImage , typename TFunction >
virtual const SeedsContainerType& itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetSeeds ( ) const
inlinevirtual
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin ( )
inline
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InitializeIterator ( )

Initializes the iterator, called from constructor

template<typename TImage , typename TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsAtEnd ( )
inlinevirtual

Is the iterator at the end of the region?

Implements itk::ConditionalConstIterator< TImage >.

Definition at line 157 of file itkFloodFilledFunctionConditionalConstIterator.h.

References itk::ConditionalConstIterator< TImage >::m_IsAtEnd.

template<typename TImage , typename TFunction >
virtual bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded ( const IndexType index) const
pure virtual
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++ ( )
inlinevirtual
template<typename TImage , typename TFunction >
Self& itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator= ( const Self it)
inline

Member Data Documentation

template<typename TImage , typename 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 255 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

template<typename TImage , typename TFunction >
SmartPointer< FunctionType > itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Function
protected
template<typename TImage , typename TFunction >
ImageType::PointType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageOrigin
protected
template<typename TImage , typename TFunction >
RegionType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageRegion
protected
template<typename TImage , typename TFunction >
ImageType::SpacingType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageSpacing
protected
template<typename TImage , typename TFunction >
std::queue< IndexType > itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack
protected
template<typename TImage , typename TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IsValidIndex
protected

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

Definition at line 258 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

template<typename TImage , typename TFunction >
FunctionInputType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_LocationVector
protected

Location vector used in the flood algorithm

Definition at line 251 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

template<typename TImage , typename TFunction >
SeedsContainerType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Seeds
protected
template<typename TImage , typename TFunction >
TTempImage::Pointer itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_TemporaryPointer
protected
template<typename TImage , typename TFunction >
const unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::NDimensions = TImage::ImageDimension
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.


The documentation for this class was generated from the following file: