18 #ifndef itkShapedFloodFilledImageFunctionConditionalIterator_h 19 #define itkShapedFloodFilledImageFunctionConditionalIterator_h 37 template<
typename TImage,
typename TFunction >
82 IndexType startIndex):Superclass(imagePtr, fnPtr, startIndex) {}
89 std::vector< IndexType > & startIndex):Superclass(imagePtr, fnPtr,
96 FunctionType *fnPtr):Superclass(imagePtr, fnPtr) {}
99 const PixelType
Get(
void)
const 100 {
return const_cast< ImageType *
>( this->
m_Image.GetPointer() )->GetPixel( this->
m_IndexStack.front() ); }
103 void Set(
const PixelType & value)
104 {
const_cast< ImageType *
>( this->
m_Image.GetPointer() )->GetPixel( this->
m_IndexStack.front() ) = value; }
const PixelType Get(void) const
Superclass::FunctionInputType FunctionInputType
ShapedFloodFilledImageFunctionConditionalIterator(ImageType *imagePtr, FunctionType *fnPtr)
TImage::RegionType RegionType
Superclass::InternalPixelType InternalPixelType
Superclass::RegionType RegionType
TFunction::InputType FunctionInputType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Superclass::FunctionType FunctionType
TImage::IndexType IndexType
Iterates over a flood-filled image function with read-only access to pixels.
ImageType::ConstWeakPointer m_Image
ShapedFloodFilledImageFunctionConditionalConstIterator< TImage, TFunction > Superclass
ShapedFloodFilledImageFunctionConditionalIterator Self
ShapedFloodFilledImageFunctionConditionalIterator(ImageType *imagePtr, FunctionType *fnPtr, std::vector< IndexType > &startIndex)
Superclass::SizeType SizeType
Superclass::PixelType PixelType
Superclass::ImageType ImageType
Superclass::IndexType IndexType
static const unsigned int NDimensions
TImage::InternalPixelType InternalPixelType
virtual ~ShapedFloodFilledImageFunctionConditionalIterator()
static const unsigned int NDimensions
void Set(const PixelType &value)
Iterates over a flood-filled image function with write access to pixels.
std::queue< IndexType > m_IndexStack
ShapedFloodFilledImageFunctionConditionalIterator(ImageType *imagePtr, FunctionType *fnPtr, IndexType startIndex)
TImage::PixelType PixelType
TImage::SizeType SizeType