Orfeo Toolbox  4.2
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Attributes | List of all members
itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction > Class Template Reference

Iterates over a flood-filled spatial function with write access to pixels. More...

#include <itkFloodFilledSpatialFunctionConditionalIterator.h>

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

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
Superclass::SeedsContainerType 
SeedsContainerType
 
typedef
FloodFilledSpatialFunctionConditionalIterator 
Self
 
typedef Superclass::SizeType SizeType
 
typedef
FloodFilledSpatialFunctionConditionalConstIterator
< TImage, TFunction > 
Superclass
 

Public Member Functions

 FloodFilledSpatialFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 
 FloodFilledSpatialFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr)
 
virtual ~FloodFilledSpatialFunctionConditionalIterator ()
 
void AddSeed (const IndexType &seed)
 
void ClearSeeds ()
 
void DoFloodStep ()
 
void FindSeedPixel ()
 
void FindSeedPixels ()
 
const PixelType Get (void) const
 
PixelType Get (void)
 
virtual SmartPointer
< FunctionType
GetFunction () const
 
const IndexType GetIndex ()
 
virtual const SeedsContainerTypeGetSeeds () const
 
void GoToBegin ()
 
void InitializeIterator ()
 
bool IsAtEnd ()
 
bool IsPixelIncluded (const IndexType &index) const
 
void operator++ ()
 
void Set (const PixelType &value)
 
void SetCenterInclusionStrategy ()
 
void SetCompleteInclusionStrategy ()
 
void SetIntersectInclusionStrategy ()
 
void SetOriginInclusionStrategy ()
 

Static Public Member Functions

static unsigned int GetIteratorDimension ()
 

Static Public Attributes

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

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
 
unsigned char m_InclusionStrategy
 
std::queue< IndexTypem_IndexStack
 
bool m_IsAtEnd
 
bool m_IsValidIndex
 
FunctionInputType m_LocationVector
 
RegionType m_Region
 
SeedsContainerType m_Seeds
 
TTempImage::Pointer m_TemporaryPointer
 

Detailed Description

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

Iterates over a flood-filled spatial function with write access to pixels.

Definition at line 35 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

Member Typedef Documentation

template<typename TImage, typename TFunction>
typedef Superclass::FunctionInputType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::FunctionInputType

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

Definition at line 47 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::FunctionType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::FunctionType

Type of function

Definition at line 44 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::ImageType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::ImageType

Image typedef support.

Definition at line 62 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::IndexType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::IndexType

Index typedef support.

Definition at line 50 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::InternalPixelType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::InternalPixelType

Internal Pixel Type

Definition at line 65 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::PixelType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::PixelType

External Pixel Type

Definition at line 68 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::RegionType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::RegionType

Region typedef support

Definition at line 59 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::SeedsContainerType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::SeedsContainerType

Index ContainerType.

Definition at line 53 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

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

Standard class typedefs.

Definition at line 40 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef Superclass::SizeType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::SizeType

Size typedef support.

Definition at line 56 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
typedef FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction > itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Superclass
template<typename TImage , typename 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 230 of file itkFloodFilledFunctionConditionalConstIterator.h.

Constructor & Destructor Documentation

template<typename TImage, typename TFunction>
itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::FloodFilledSpatialFunctionConditionalIterator ( 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 73 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::FloodFilledSpatialFunctionConditionalIterator ( 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 80 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

template<typename TImage, typename TFunction>
virtual itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::~FloodFilledSpatialFunctionConditionalIterator ( )
inlinevirtual

Default Destructor.

Definition at line 96 of file itkFloodFilledSpatialFunctionConditionalIterator.h.

Member Function Documentation

template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::AddSeed ( const IndexType seed)
inlineinherited
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ClearSeeds ( )
inlineinherited
template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::DoFloodStep ( )
inherited
template<typename TImage , typename 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 112 of file itkFloodFilledFunctionConditionalConstIterator.hxx.

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

Automatically find all seed pixels.

Definition at line 138 of file itkFloodFilledFunctionConditionalConstIterator.hxx.

template<typename TImage, typename TFunction>
const PixelType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Get ( void  ) const
inlinevirtual
template<typename TImage, typename TFunction>
PixelType itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Get ( void  )
inline
template<typename TImage , typename TFunction >
virtual SmartPointer< FunctionType > itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::GetFunction ( void  ) const
inlinevirtualinherited
template<typename TImage , typename 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 147 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

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

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

Get the dimension (size) of the index.

Definition at line 140 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

Initializes the iterator, called from constructor

Definition at line 74 of file itkFloodFilledFunctionConditionalConstIterator.hxx.

template<typename TImage , typename TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IsAtEnd ( void  )
inlinevirtualinherited
template<typename TImage , typename TFunction >
bool itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded ( const IndexType index) const
virtualinherited

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

Implements itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

Definition at line 47 of file itkFloodFilledSpatialFunctionConditionalConstIterator.hxx.

template<typename TImage , typename TFunction >
void itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::operator++ ( )
inlinevirtualinherited
template<typename TImage, typename TFunction>
void itk::FloodFilledSpatialFunctionConditionalIterator< TImage, TFunction >::Set ( const PixelType value)
inline
template<typename TImage , typename TFunction >
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetCenterInclusionStrategy ( )
inlineinherited
template<typename TImage , typename TFunction >
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetCompleteInclusionStrategy ( )
inlineinherited
template<typename TImage , typename TFunction >
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetIntersectInclusionStrategy ( )
inlineinherited
template<typename TImage , typename TFunction >
void itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetOriginInclusionStrategy ( )
inlineinherited

Member Data Documentation

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

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

template<typename TImage , typename TFunction >
SmartPointer< FunctionType > itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Function
protectedinherited
template<typename TImage >
ImageType::ConstWeakPointer itk::ConditionalConstIterator< TImage >::m_Image
protectedinherited
template<typename TImage , typename TFunction >
ImageType::PointType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageOrigin
protectedinherited
template<typename TImage , typename TFunction >
RegionType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageRegion
protectedinherited
template<typename TImage , typename TFunction >
ImageType::SpacingType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_ImageSpacing
protectedinherited
template<typename TImage , typename TFunction >
unsigned char itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::m_InclusionStrategy
protectedinherited

How the pixel (index) is examined in order to decide whether or not it's included. The strategies are: 0) Origin: if the origin of the pixel in physical space is inside the function, then the pixel is inside the function 1) Center: if the center of a pixel, in physical space, is inside the function, then the pixel is inside the function 2) Complete: if all of the corners of the pixel in physical space are inside the function, then the pixel is inside the function 3) Intersect: if any of the corners of the pixel in physical space are inside the function, then the pixel is inside the function

Definition at line 113 of file itkFloodFilledSpatialFunctionConditionalConstIterator.h.

Referenced by itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetCenterInclusionStrategy(), itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetCompleteInclusionStrategy(), itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetIntersectInclusionStrategy(), and itk::FloodFilledSpatialFunctionConditionalConstIterator< TImage, TFunction >::SetOriginInclusionStrategy().

template<typename TImage , typename TFunction >
std::queue< IndexType > itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IndexStack
protectedinherited
template<typename TImage >
bool itk::ConditionalConstIterator< TImage >::m_IsAtEnd
protectedinherited
template<typename TImage , typename TFunction >
bool itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_IsValidIndex
protectedinherited

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

Definition at line 256 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

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

Location vector used in the flood algorithm

Definition at line 249 of file itkFloodFilledFunctionConditionalConstIterator.h.

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

template<typename TImage >
RegionType itk::ConditionalConstIterator< TImage >::m_Region
protectedinherited
template<typename TImage , typename TFunction >
SeedsContainerType itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_Seeds
protectedinherited
template<typename TImage , typename TFunction >
TTempImage::Pointer itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::m_TemporaryPointer
protectedinherited
template<typename 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 48 of file itkConditionalConstIterator.h.

Referenced by itk::ConditionalConstIterator< TImage >::GetIteratorDimension().

template<typename TImage , typename TFunction >
const unsigned int itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::NDimensions = 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 77 of file itkFloodFilledFunctionConditionalConstIterator.h.


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

Generated at Sat Aug 30 2014 17:11:50 for Orfeo Toolbox with doxygen 1.8.3.1