18 #ifndef itkShapedFloodFilledFunctionConditionalConstIterator_h 19 #define itkShapedFloodFilledFunctionConditionalConstIterator_h 42 template<
typename TImage,
typename TFunction >
88 itkStaticConstMacro(
NDimensions,
unsigned int, TImage::ImageDimension);
95 IndexType startIndex);
102 std::vector< IndexType > & startIndices);
108 FunctionType *fnPtr);
139 {
return TImage::ImageDimension; }
149 const PixelType
Get(
void)
const 184 for (
unsigned int i = 0; i <
m_Seeds.size(); i++ )
221 itkBooleanMacro(FullyConnected);
279 #ifndef ITK_MANUAL_INSTANTIATION 280 #include "itkShapedFloodFilledFunctionConditionalConstIterator.hxx"
virtual ~ShapedFloodFilledFunctionConditionalConstIterator()
static unsigned int GetIteratorDimension()
TImage::RegionType RegionType
TFunction::InputType FunctionInputType
virtual const SeedsContainerType & GetSeeds() const
Image< unsigned char, itkGetStaticConstMacro(NDimensions) > TTempImage
SeedsContainerType m_Seeds
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
FunctionInputType m_LocationVector
void SetFullyConnected(const bool _arg)
virtual bool IsPixelIncluded(const IndexType &index) const =0
void InitializeIterator()
TImage::IndexType IndexType
virtual SmartPointer< FunctionType > GetFunction() const
Self & operator=(const Self &it)
NeighborhoodIteratorType m_NeighborhoodIterator
ImageType::PointType m_ImageOrigin
const IndexType GetIndex()
ShapedFloodFilledFunctionConditionalConstIterator(const ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
ImageType::ConstWeakPointer m_Image
TImage::OffsetType OffsetType
Iterates over a flood-filled spatial function with read-only access to pixels.
ImageType::SpacingType m_ImageSpacing
TTempImage::Pointer m_TempPtr
ShapedFloodFilledFunctionConditionalConstIterator Self
std::vector< IndexType > SeedsContainerType
itk::ShapedNeighborhoodIterator< ImageType > NeighborhoodIteratorType
void AddSeed(const IndexType seed)
static const unsigned int NDimensions
bool GetFullyConnected() const
TImage::InternalPixelType InternalPixelType
Define additional traits for native types such as int or float.
A base class for other iterators where membership in the set of output pixels is conditional upon som...
bool m_FoundUncheckedNeighbor
std::queue< IndexType > m_IndexStack
SmartPointer< FunctionType > m_Function
const PixelType Get(void) const
Templated n-dimensional image class.
TImage::PixelType PixelType
TImage::SizeType SizeType