18#ifndef itkShapedFloodFilledFunctionConditionalConstIterator_h
19#define itkShapedFloodFilledFunctionConditionalConstIterator_h
42template <
typename TImage,
typename TFunction>
87 static constexpr unsigned int NDimensions = TImage::ImageDimension;
101 std::vector<IndexType> & startIndex);
144 return TImage::ImageDimension;
200 for (
unsigned int i = 0; i <
m_Seeds.size(); ++i)
243 itkBooleanMacro(FullyConnected);
302#ifndef ITK_MANUAL_INSTANTIATION
303# include "itkShapedFloodFilledFunctionConditionalConstIterator.hxx"
ConditionalConstIterator()=default
ImageType::ConstWeakPointer m_Image
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
SeedsContainerType m_Seeds
void InitializeIterator()
bool IsAtEnd() const override
bool m_FoundUncheckedNeighbor
const IndexType GetIndex() override
typename std::vector< IndexType > SeedsContainerType
NeighborhoodIteratorType m_NeighborhoodIterator
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 itk::ShapedNeighborhoodIterator< ImageType > NeighborhoodIteratorType
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....