18 #ifndef __itkShapedFloodFilledFunctionConditionalConstIterator_h
19 #define __itkShapedFloodFilledFunctionConditionalConstIterator_h
42 template<
class TImage,
class TFunction >
88 itkStaticConstMacro(NDimensions,
unsigned int, TImage::ImageDimension);
102 std::vector< IndexType > & startIndices);
114 void FindSeedPixel();
117 void FindSeedPixels();
120 void InitializeIterator();
126 virtual bool IsPixelIncluded(
const IndexType & index)
const = 0;
138 static unsigned int GetIteratorDimension()
139 {
return TImage::ImageDimension; }
146 {
return m_IndexStack.front(); }
150 {
return this->m_Image->GetPixel( m_IndexStack.front() ); }
154 {
return this->m_IsAtEnd; }
159 m_Seeds.push_back (seed);
173 while ( !m_IndexStack.empty() )
178 this->m_IsAtEnd =
true;
180 m_TempPtr->FillBuffer(
184 for (
unsigned int i = 0; i < m_Seeds.size(); i++ )
186 if ( this->m_Image->GetBufferedRegion().IsInside (m_Seeds[i])
187 && this->IsPixelIncluded(m_Seeds[i]) )
190 m_IndexStack.push(m_Seeds[i]);
193 this->m_IsAtEnd =
false;
197 m_TempPtr->SetPixel(m_Seeds[i], 2);
204 { this->DoFloodStep(); }
217 void SetFullyConnected(
const bool _arg);
219 bool GetFullyConnected()
const;
221 itkBooleanMacro(FullyConnected);
279 #ifndef ITK_MANUAL_INSTANTIATION
280 #include "itkShapedFloodFilledFunctionConditionalConstIterator.hxx"