ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction > Class Template Reference

#include <itkShapedFloodFilledImageFunctionConditionalIterator.h>

Detailed Description

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

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

Contributed as a paper to the Insight Journal: https://doi.org/10.54294/iei8xt

Definition at line 38 of file itkShapedFloodFilledImageFunctionConditionalIterator.h.

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

Public Types

using FunctionInputType
 
using FunctionType
 
using ImageType
 
using IndexType
 
using InternalPixelType
 
using PixelType
 
using RegionType
 
using Self = ShapedFloodFilledImageFunctionConditionalIterator
 
using SizeType
 
using Superclass = ShapedFloodFilledImageFunctionConditionalConstIterator<TImage, TFunction>
 
- Public Types inherited from itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
using FunctionInputType
 
using FunctionType
 
using ImageType
 
using IndexType
 
using InternalPixelType
 
using PixelType
 
using RegionType
 
using Self = ShapedFloodFilledImageFunctionConditionalConstIterator<TImage, TFunction>
 
using SizeType
 
using Superclass = ShapedFloodFilledFunctionConditionalConstIterator<TImage, TFunction>
 
- Public Types inherited from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >
using FunctionInputType = typename TFunction::InputType
 
using FunctionType = TFunction
 
using ImageType = TImage
 
using IndexType = typename TImage::IndexType
 
using InternalPixelType = typename TImage::InternalPixelType
 
using NeighborhoodIteratorType = typename itk::ShapedNeighborhoodIterator<ImageType>
 
using OffsetType = typename TImage::OffsetType
 
using PixelType = typename TImage::PixelType
 
using RegionType = typename TImage::RegionType
 
using SeedsContainerType = typename std::vector<IndexType>
 
using Self = ShapedFloodFilledFunctionConditionalConstIterator
 
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

const PixelType Get () const override
 
void Set (const PixelType &value)
 
 ShapedFloodFilledImageFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr)
 
 ShapedFloodFilledImageFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 
 ShapedFloodFilledImageFunctionConditionalIterator (ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
 
 ~ShapedFloodFilledImageFunctionConditionalIterator () override=default
 
- Public Member Functions inherited from itk::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
bool IsPixelIncluded (const IndexType &index) const override
 
 ShapedFloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr)
 
 ShapedFloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 
 ShapedFloodFilledImageFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
 
 ~ShapedFloodFilledImageFunctionConditionalConstIterator () override=default
 
- Public Member Functions inherited from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >
void AddSeed (const IndexType seed)
 
void ClearSeeds ()
 
void DoFloodStep ()
 
void FindSeedPixel ()
 
void FindSeedPixels ()
 
virtual void FullyConnectedOff ()
 
virtual void FullyConnectedOn ()
 
bool GetFullyConnected () const
 
virtual SmartPointer< FunctionTypeGetFunction () const
 
const IndexType GetIndex () override
 
virtual const SeedsContainerTypeGetSeeds () const
 
void GoToBegin ()
 
void InitializeIterator ()
 
bool IsAtEnd () const override
 
void operator++ () override
 
Selfoperator= (const Self &it)
 
void SetFullyConnected (const bool _arg)
 
 ShapedFloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr)
 
 ShapedFloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
 
 ShapedFloodFilledFunctionConditionalConstIterator (const ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
 
 ~ShapedFloodFilledFunctionConditionalConstIterator () override=default
 
- 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::ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction >
static constexpr unsigned int NDimensions = Superclass::NDimensions
 
- Static Public Attributes inherited from itk::ShapedFloodFilledFunctionConditionalConstIterator< 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::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >
static unsigned int GetIteratorDimension ()
 
- Static Public Member Functions inherited from itk::ConditionalConstIterator< TImage >
static unsigned int GetIteratorDimension ()
 
- Protected Types inherited from itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >
using TTempImage = Image<unsigned char, Self::NDimensions>
 
- Protected Attributes inherited from itk::ShapedFloodFilledFunctionConditionalConstIterator< 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 {}
 
NeighborhoodIteratorType m_NeighborhoodIterator {}
 
SeedsContainerType m_Seeds {}
 
TTempImage::Pointer m_TempPtr {}
 
bool m_FullyConnected {}
 
- 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::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionInputType

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

Definition at line 51 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ FunctionType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::FunctionType

Type of function

Definition at line 48 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ ImageType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::ImageType

Image type alias support

Definition at line 63 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ IndexType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::IndexType

Index type alias support

Definition at line 54 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ InternalPixelType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::InternalPixelType

Internal Pixel Type

Definition at line 66 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ PixelType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::PixelType

External Pixel Type

Definition at line 69 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ RegionType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::RegionType

Region type alias support

Definition at line 60 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ Self

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

Standard class type aliases.

Definition at line 44 of file itkShapedFloodFilledImageFunctionConditionalIterator.h.

◆ SizeType

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledFunctionConditionalConstIterator< TImage, TFunction >::SizeType

Size type alias support

Definition at line 57 of file itkShapedFloodFilledFunctionConditionalConstIterator.h.

◆ Superclass

template<typename TImage, typename TFunction>
using itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >::Superclass = ShapedFloodFilledImageFunctionConditionalConstIterator<TImage, TFunction>

Constructor & Destructor Documentation

◆ ShapedFloodFilledImageFunctionConditionalIterator() [1/3]

template<typename TImage, typename TFunction>
itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >::ShapedFloodFilledImageFunctionConditionalIterator ( 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 itkShapedFloodFilledImageFunctionConditionalIterator.h.

◆ ShapedFloodFilledImageFunctionConditionalIterator() [2/3]

template<typename TImage, typename TFunction>
itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >::ShapedFloodFilledImageFunctionConditionalIterator ( 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 87 of file itkShapedFloodFilledImageFunctionConditionalIterator.h.

◆ ShapedFloodFilledImageFunctionConditionalIterator() [3/3]

template<typename TImage, typename TFunction>
itk::ShapedFloodFilledImageFunctionConditionalIterator< TImage, TFunction >::ShapedFloodFilledImageFunctionConditionalIterator ( 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 itkShapedFloodFilledImageFunctionConditionalIterator.h.

◆ ~ShapedFloodFilledImageFunctionConditionalIterator()

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

Default Destructor.

Member Function Documentation

◆ Get()

◆ Set()

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

Member Data Documentation

◆ NDimensions

template<typename TImage, typename TFunction>
unsigned int itk::ShapedFloodFilledImageFunctionConditionalIterator< 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 itkShapedFloodFilledImageFunctionConditionalIterator.h.


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