18#ifndef itkShapedFloodFilledFunctionConditionalConstIterator_h
19#define itkShapedFloodFilledFunctionConditionalConstIterator_h
42template <
typename TImage,
typename TFunction>
79#ifndef ITK_LEGACY_REMOVE
81 using NeighborhoodIteratorType
82 [[deprecated(
"This nested type alias was only for internal use, and is now obsolete!")]] =
90 static constexpr unsigned int NDimensions = TImage::ImageDimension;
104 std::vector<IndexType> & startIndex);
147 return TImage::ImageDimension;
203 for (
unsigned int i = 0; i <
m_Seeds.size(); ++i)
246 itkBooleanMacro(FullyConnected);
304#ifndef ITK_MANUAL_INSTANTIATION
305# include "itkShapedFloodFilledFunctionConditionalConstIterator.hxx"
ConditionalConstIterator()=default
ImageType::ConstWeakPointer m_Image
Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional neighborhood...
Templated n-dimensional image class.
SmartPointer< Self > Pointer
Iterates over a flood-filled spatial function with read-only access to pixels.
ShapedFloodFilledFunctionConditionalConstIterator(const ImageType *imagePtr, FunctionType *fnPtr)
Image< unsigned char, Self::NDimensions > TTempImage
void AddSeed(const IndexType seed)
SmartPointer< FunctionType > m_Function
ShapedFloodFilledFunctionConditionalConstIterator Self
const PixelType Get() const override
FunctionInputType m_LocationVector
ConstShapedNeighborhoodIterator< TImage > m_NeighborhoodIterator
SeedsContainerType m_Seeds
void InitializeIterator()
bool IsAtEnd() const override
bool m_FoundUncheckedNeighbor
const IndexType GetIndex() override
typename std::vector< IndexType > SeedsContainerType
typename TImage::PixelType PixelType
~ShapedFloodFilledFunctionConditionalConstIterator() override=default
ShapedFloodFilledFunctionConditionalConstIterator(const ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
std::queue< IndexType > m_IndexStack
ImageType::PointType m_ImageOrigin
virtual SmartPointer< FunctionType > GetFunction() const
virtual const SeedsContainerType & GetSeeds() const
static unsigned int GetIteratorDimension()
typename TImage::InternalPixelType InternalPixelType
TTempImage::Pointer m_TempPtr
static constexpr unsigned int NDimensions
ImageType::SpacingType m_ImageSpacing
bool IsPixelIncluded(const IndexType &index) const override=0
typename TImage::IndexType IndexType
ShapedFloodFilledFunctionConditionalConstIterator(const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
typename TFunction::InputType FunctionInputType
typename TImage::RegionType RegionType
void SetFullyConnected(const bool _arg)
typename TImage::OffsetType OffsetType
bool GetFullyConnected() const
Self & operator=(const Self &it)
void operator++() override
ShapedFloodFilledImageFunctionConditionalIterator Self
typename TImage::SizeType SizeType
typename TImage::RegionType RegionType
A neighborhood iterator which can take on an arbitrary shape.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....