ITK  5.2.0
Insight Toolkit
Public Types | Public Member Functions | Static Public Attributes | List of all members
itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction > Class Template Reference

#include <itkFloodFilledImageFunctionConditionalConstIterator.h>

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

Public Types

using FunctionInputType = typename Superclass::FunctionInputType
 
using FunctionType = typename Superclass::FunctionType
 
using ImageType = typename Superclass::ImageType
 
using IndexType = typename Superclass::IndexType
 
using InternalPixelType = typename Superclass::InternalPixelType
 
using PixelType = typename Superclass::PixelType
 
using RegionType = typename Superclass::RegionType
 
using SeedsContainerType = typename Superclass::SeedsContainerType
 
using Self = FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
 
using SizeType = typename Superclass::SizeType
 
using Superclass = FloodFilledFunctionConditionalConstIterator< TImage, TFunction >
 
- Public Types inherited from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >
using FunctionInputType = typename TFunction::InputType
 
using FunctionType = TFunction
 
using ImageType = TImage
 
using IndexType = typename TImage::IndexType
 
using InternalPixelType = typename TImage::InternalPixelType
 
using PixelType = typename TImage::PixelType
 
using RegionType = typename TImage::RegionType
 
using SeedsContainerType = typename std::vector< IndexType >
 
using Self = FloodFilledFunctionConditionalConstIterator
 
using SizeType = typename TImage::SizeType
 
- Public Types inherited from itk::ConditionalConstIterator< TImage >
using ImageType = TImage
 
using IndexType = typename TImage::IndexType
 
using InternalPixelType = typename TImage::InternalPixelType
 
using PixelType = typename TImage::PixelType
 
using RegionType = typename TImage::RegionType
 
using Self = ConditionalConstIterator
 
using SizeType = typename TImage::SizeType
 

Public Member Functions

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

Static Public Attributes

static constexpr unsigned int NDimensions = Superclass::NDimensions
 
- Static Public Attributes inherited from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >
static constexpr unsigned int NDimensions = TImage::ImageDimension
 
- Static Public Attributes inherited from itk::ConditionalConstIterator< TImage >
static constexpr unsigned int NDimension = TImage::ImageDimension
 

Additional Inherited Members

- Static Public Member Functions inherited from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >
static unsigned int GetIteratorDimension ()
 
- Static Public Member Functions inherited from itk::ConditionalConstIterator< TImage >
static unsigned int GetIteratorDimension ()
 
- Protected Types inherited from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >
using TTempImage = Image< unsigned char, Self::NDimensions >
 
- Protected Attributes inherited from itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >
SmartPointer< FunctionTypem_Function
 
TTempImage::Pointer m_TemporaryPointer
 
SeedsContainerType m_Seeds
 
ImageType::PointType m_ImageOrigin
 
ImageType::SpacingType m_ImageSpacing
 
RegionType m_ImageRegion
 
std::queue< IndexTypem_IndexStack
 
FunctionInputType m_LocationVector
 
bool m_FoundUncheckedNeighbor
 
bool m_IsValidIndex
 
- Protected Attributes inherited from itk::ConditionalConstIterator< TImage >
ImageType::ConstWeakPointer m_Image
 
bool m_IsAtEnd { false }
 
RegionType m_Region
 

Detailed Description

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

Iterates over a flood-filled image function with read-only access to pixels.

Definition at line 35 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

Member Typedef Documentation

◆ FunctionInputType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType = typename Superclass::FunctionInputType

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

Definition at line 48 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ FunctionType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::FunctionType = typename Superclass::FunctionType

Type of function

Definition at line 45 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ ImageType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::ImageType = typename Superclass::ImageType

Image type alias support.

Definition at line 63 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ IndexType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::IndexType = typename Superclass::IndexType

Index type alias support.

Definition at line 51 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ InternalPixelType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType = typename Superclass::InternalPixelType

Internal Pixel Type

Definition at line 66 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ PixelType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::PixelType = typename Superclass::PixelType

External Pixel Type

Definition at line 69 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ RegionType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::RegionType = typename Superclass::RegionType

Region type alias support

Definition at line 60 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ SeedsContainerType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::SeedsContainerType = typename Superclass::SeedsContainerType

Index ContainerType.

Definition at line 54 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ Self

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::Self = FloodFilledImageFunctionConditionalConstIterator<TImage, TFunction>

Standard class type aliases.

Definition at line 41 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ SizeType

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::SizeType = typename Superclass::SizeType

Size type alias support.

Definition at line 57 of file itkFloodFilledImageFunctionConditionalConstIterator.h.

◆ Superclass

template<typename TImage , typename TFunction >
using itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::Superclass = FloodFilledFunctionConditionalConstIterator<TImage, TFunction>

Constructor & Destructor Documentation

◆ FloodFilledImageFunctionConditionalConstIterator() [1/3]

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

◆ FloodFilledImageFunctionConditionalConstIterator() [2/3]

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

◆ FloodFilledImageFunctionConditionalConstIterator() [3/3]

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

◆ ~FloodFilledImageFunctionConditionalConstIterator()

template<typename TImage , typename TFunction >
itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::~FloodFilledImageFunctionConditionalConstIterator ( )
overridedefault

Default Destructor.

Member Function Documentation

◆ IsPixelIncluded()

template<typename TImage , typename TFunction >
bool itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::IsPixelIncluded ( const IndexType index) const
overridevirtual

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

Implements itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >.

Member Data Documentation

◆ NDimensions

template<typename TImage , typename TFunction >
constexpr unsigned int itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >::NDimensions = Superclass::NDimensions
staticconstexpr

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.

Definition at line 75 of file itkFloodFilledImageFunctionConditionalConstIterator.h.


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