Orfeo Toolbox  3.16
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes
itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction > Class Template Reference

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

#include <itkFloodFilledImageFunctionConditionalConstIterator.h>

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

List of all members.

Public Types

typedef
Superclass::FunctionInputType 
FunctionInputType
typedef Superclass::FunctionType FunctionType
typedef Superclass::ImageType ImageType
typedef Superclass::IndexType IndexType
typedef
Superclass::InternalPixelType 
InternalPixelType
typedef Superclass::PixelType PixelType
typedef Superclass::RegionType RegionType
typedef
FloodFilledImageFunctionConditionalConstIterator 
Self
typedef Superclass::SizeType SizeType
typedef
FloodFilledFunctionConditionalConstIterator
< TImage, TFunction > 
Superclass

Public Member Functions

 FloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 FloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
 FloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr)
virtual ~FloodFilledImageFunctionConditionalConstIterator ()
void AddSeed (const IndexType seed)
void ClearSeeds ()
void DoFloodStep ()
void FindSeedPixel ()
void FindSeedPixels ()
const PixelTypeGet (void) const
virtual SmartPointer
< FunctionType
GetFunction () const
const IndexType GetIndex ()
void GoToBegin ()
void InitializeIterator ()
bool IsAtEnd ()
bool IsPixelIncluded (const IndexType &index) const
void operator++ ()

Static Public Member Functions

static unsigned int GetIteratorDimension ()

Static Public Attributes

static const unsigned int NDimension = TImage::ImageDimension
static const unsigned int NDimensions = Superclass::NDimensions

Protected Types

typedef Image< unsigned char,
itkGetStaticConstMacro(NDimensions)> 
TTempImage

Protected Attributes

bool m_FoundUncheckedNeighbor
SmartPointer< FunctionTypem_Function
ImageType::ConstWeakPointer m_Image
ImageType::PointType m_ImageOrigin
RegionType m_ImageRegion
ImageType::SpacingType m_ImageSpacing
std::queue< IndexTypem_IndexStack
bool m_IsAtEnd
bool m_IsValidIndex
FunctionInputType m_LocationVector
RegionType m_Region
std::vector< IndexTypem_StartIndices
TTempImage::Pointer m_TemporaryPointer

Detailed Description

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

Iterates over a flood-filled image function.

Definition at line 33 of file itkFloodFilledImageFunctionConditionalConstIterator.h.


Member Typedef Documentation

template<class TImage , class TFunction >
typedef Superclass::FunctionInputType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType

Type of vector used to store location info in the spatial function

Reimplemented from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

Reimplemented in itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >.

Definition at line 47 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
typedef Superclass::FunctionType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FunctionType
template<class TImage , class TFunction >
typedef Superclass::ImageType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::ImageType
template<class TImage , class TFunction >
typedef Superclass::IndexType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::IndexType
template<class TImage , class TFunction >
typedef Superclass::InternalPixelType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType
template<class TImage , class TFunction >
typedef Superclass::PixelType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::PixelType
template<class TImage , class TFunction >
typedef Superclass::RegionType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::RegionType
template<class TImage , class TFunction >
typedef FloodFilledImageFunctionConditionalConstIterator itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::Self
template<class TImage , class TFunction >
typedef Superclass::SizeType itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::SizeType
template<class TImage , class TFunction >
typedef FloodFilledFunctionConditionalConstIterator<TImage, TFunction> itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::Superclass
template<class TImage , class TFunction >
typedef Image<unsigned char, itkGetStaticConstMacro(NDimensions)> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::TTempImage
protectedinherited

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


Constructor & Destructor Documentation

template<class TImage , class TFunction >
itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledImageFunctionConditionalConstIterator ( const ImageType imagePtr,
FunctionType fnPtr,
IndexType  startIndex 
)
inline

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"

Definition at line 76 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledImageFunctionConditionalConstIterator ( const ImageType imagePtr,
FunctionType fnPtr,
std::vector< IndexType > &  startIndex 
)
inline

Constructor establishes an iterator to walk a particular image and a particular region of that image. This version of the constructor uses an explicit list of seed pixels for the flood fill, the "startIndex"

Definition at line 86 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FloodFilledImageFunctionConditionalConstIterator ( const ImageType imagePtr,
FunctionType fnPtr 
)
inline

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.

Definition at line 96 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
virtual itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::~FloodFilledImageFunctionConditionalConstIterator ( )
inlinevirtual

Default Destructor.

Definition at line 101 of file itkFloodFilledImageFunctionConditionalConstIterator.h.


Member Function Documentation

template<class TImage , class TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::AddSeed ( const IndexType  seed)
inlineinherited

Put more seeds on the list

Definition at line 143 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ClearSeeds ( )
inlineinherited

Clear all the seeds

Definition at line 149 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep ( )
inherited
template<class TImage , class TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FindSeedPixel ( )
inherited

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.

Definition at line 108 of file itkFloodFilledFunctionConditionalConstIterator.txx.

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

Automatically find all seed pixels.

Definition at line 134 of file itkFloodFilledFunctionConditionalConstIterator.txx.

template<class TImage , class TFunction >
const PixelType& itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::Get ( void  ) const
inlinevirtualinherited
template<class TImage , class TFunction >
virtual SmartPointer<FunctionType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetFunction ( void  ) const
inlinevirtualinherited
template<class TImage , class TFunction >
const IndexType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIndex ( void  )
inlinevirtualinherited

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

Referenced by itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::Update().

template<class TImage , class TFunction >
static unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetIteratorDimension ( )
inlinestaticinherited

Get the dimension (size) of the index.

Reimplemented from itk::ConditionalConstIterator< TImage >.

Definition at line 124 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GoToBegin ( void  )
inlineinherited

Move an iterator to the beginning of the region. "Begin" is defined as the first pixel in the region.

Definition at line 156 of file itkFloodFilledFunctionConditionalConstIterator.h.

Referenced by itk::SpatialObjectToImageStatisticsCalculator< TInputImage, TInputSpatialObject, TSampleDimension >::Update().

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

Initializes the iterator, called from constructor

Definition at line 72 of file itkFloodFilledFunctionConditionalConstIterator.txx.

template<class TImage , class TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsAtEnd ( void  )
inlinevirtualinherited
template<class TImage , class TFunction >
bool itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded ( const IndexType index) const
virtual

Compute whether the index of interest should be included in the flood

Implements itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

Definition at line 27 of file itkFloodFilledImageFunctionConditionalConstIterator.txx.

template<class TImage , class TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++ ( )
inlinevirtualinherited

Walk forward one index

Implements itk::ConditionalConstIterator< TImage >.

Definition at line 189 of file itkFloodFilledFunctionConditionalConstIterator.h.


Member Data Documentation

template<class TImage , class TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_FoundUncheckedNeighbor
protectedinherited

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

Definition at line 232 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
SmartPointer<FunctionType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Function
protectedinherited

Smart pointer to the function we're evaluating

Definition at line 202 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage >
ImageType::ConstWeakPointer itk::ConditionalConstIterator< TImage >::m_Image
protectedinherited
template<class TImage , class TFunction >
ImageType::PointType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageOrigin
protectedinherited

The origin of the source image

Definition at line 216 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
RegionType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageRegion
protectedinherited

Region of the source image

Definition at line 222 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
ImageType::SpacingType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageSpacing
protectedinherited

The spacing of the source image

Definition at line 219 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
std::queue<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack
protectedinherited

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

Definition at line 225 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage >
bool itk::ConditionalConstIterator< TImage >::m_IsAtEnd
protectedinherited

Is the iterator at the end of its walk?

Definition at line 110 of file itkConditionalConstIterator.h.

template<class TImage , class TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IsValidIndex
protectedinherited

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

Definition at line 235 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
FunctionInputType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_LocationVector
protectedinherited

Location vector used in the flood algorithm

Definition at line 228 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage >
RegionType itk::ConditionalConstIterator< TImage >::m_Region
protectedinherited
template<class TImage , class TFunction >
std::vector<IndexType> itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_StartIndices
protectedinherited

A list of locations to start the recursive fill

Definition at line 213 of file itkFloodFilledFunctionConditionalConstIterator.h.

template<class TImage , class TFunction >
TTempImage::Pointer itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_TemporaryPointer
protectedinherited
template<class TImage >
const unsigned int itk::ConditionalConstIterator< TImage >::NDimension = TImage::ImageDimension
staticinherited

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 47 of file itkConditionalConstIterator.h.

template<class TImage , class TFunction >
const unsigned int itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::NDimensions = Superclass::NDimensions
static

Dimension of the image the iterator walks. This constant is needed so 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::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

Reimplemented in itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >.

Definition at line 71 of file itkFloodFilledImageFunctionConditionalConstIterator.h.


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

Generated at Sun Feb 3 2013 01:43:11 for Orfeo Toolbox with doxygen 1.8.1.1