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

#include <itkFloodFilledImageFunctionConditionalIterator.h>

Detailed Description

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

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

ITK Sphinx Examples:
Examples
SphinxExamples/src/Core/Common/IterateImageStartingAtSeed/Code.cxx.

Definition at line 38 of file itkFloodFilledImageFunctionConditionalIterator.h.

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

Public Types

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 = FloodFilledImageFunctionConditionalIterator
 
using SizeType = typename TImage::SizeType
 
using Superclass = FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
 
- Public Types inherited from itk::FloodFilledImageFunctionConditionalConstIterator< 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 = FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
 
using SizeType = typename TImage::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

 FloodFilledImageFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr)
 
 FloodFilledImageFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 
 FloodFilledImageFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
 
const PixelType Get () const override
 
void Set (const PixelType &value)
 
 ~FloodFilledImageFunctionConditionalIterator () override=default
 
- Public Member Functions inherited from itk::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
 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 AddSeed (const IndexType &seed)
 
void ClearSeeds ()
 
void DoFloodStep ()
 
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 > &startIndex)
 
virtual SmartPointer< FunctionTypeGetFunction () const
 
const IndexType GetIndex () override
 
virtual const SeedsContainerTypeGetSeeds () const
 
void GoToBegin ()
 
void InitializeIterator ()
 
bool IsAtEnd () const override
 
void operator++ () override
 
 ~FloodFilledFunctionConditionalConstIterator () override=default
 
Selfoperator= (const Self &it)
 
- 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::FloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
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 >
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 { false }
 
RegionType m_Region {}
 

Member Typedef Documentation

◆ FunctionInputType

template<typename TImage , typename TFunction >
using itk::FloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType = typename TFunction::InputType

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

Definition at line 50 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ FunctionType

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

Type of function

Definition at line 47 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ ImageType

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

Image type alias support.

Definition at line 65 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ IndexType

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

Index type alias support.

Definition at line 53 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ InternalPixelType

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

Internal Pixel Type

Definition at line 68 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ PixelType

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

External Pixel Type

Definition at line 71 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ RegionType

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

Region type alias support

Definition at line 62 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ SeedsContainerType

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

Index ContainerType

Definition at line 56 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ Self

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

Standard class type aliases.

Definition at line 44 of file itkFloodFilledImageFunctionConditionalIterator.h.

◆ SizeType

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

Size type alias support.

Definition at line 59 of file itkFloodFilledFunctionConditionalConstIterator.h.

◆ Superclass

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

Constructor & Destructor Documentation

◆ FloodFilledImageFunctionConditionalIterator() [1/3]

template<typename TImage , typename TFunction >
itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::FloodFilledImageFunctionConditionalIterator ( 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 83 of file itkFloodFilledImageFunctionConditionalIterator.h.

◆ FloodFilledImageFunctionConditionalIterator() [2/3]

template<typename TImage , typename TFunction >
itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::FloodFilledImageFunctionConditionalIterator ( 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 90 of file itkFloodFilledImageFunctionConditionalIterator.h.

◆ FloodFilledImageFunctionConditionalIterator() [3/3]

template<typename TImage , typename TFunction >
itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::FloodFilledImageFunctionConditionalIterator ( 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 99 of file itkFloodFilledImageFunctionConditionalIterator.h.

◆ ~FloodFilledImageFunctionConditionalIterator()

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

Default Destructor.

Member Function Documentation

◆ Get()

template<typename TImage , typename TFunction >
const PixelType itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Get ( ) const
inlineoverridevirtual

◆ Set()

template<typename TImage , typename TFunction >
void itk::FloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Set ( const PixelType value)
inline

Member Data Documentation

◆ NDimensions

template<typename TImage , typename TFunction >
constexpr unsigned int itk::FloodFilledImageFunctionConditionalIterator< 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 78 of file itkFloodFilledImageFunctionConditionalIterator.h.


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