X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=libs%2Ffpa%2FImage%2FRegionGrow.hxx;h=facd9f80956f7da34923a8ff7f84fe80e5db4ca5;hb=fa473b0493ad1f4b6e2fb15b180fc32c67e9c712;hp=0cf74deca72c5af32a8834e34fa38e525357b4a2;hpb=4b880a6cf8104f7176a1701c01151bd861ba78ba;p=FrontAlgorithms.git diff --git a/libs/fpa/Image/RegionGrow.hxx b/libs/fpa/Image/RegionGrow.hxx index 0cf74de..facd9f8 100644 --- a/libs/fpa/Image/RegionGrow.hxx +++ b/libs/fpa/Image/RegionGrow.hxx @@ -21,20 +21,12 @@ SetPredicate( TIntensityFunctor* functor ) } // fi } -// ------------------------------------------------------------------------- -template< class _TInputImage, class _TOutputImage > -void fpa::Image::RegionGrow< _TInputImage, _TOutputImage >:: -AddSeed( const TIndex& seed ) -{ - if( this->m_Seeds.insert( seed ).second ) - this->Modified( ); -} - // ------------------------------------------------------------------------- template< class _TInputImage, class _TOutputImage > fpa::Image::RegionGrow< _TInputImage, _TOutputImage >:: RegionGrow( ) : Superclass( ), + TSeedsInterface( this ), m_InsideValue( TInputPixel( 0 ) ), m_OutsideValue( TInputPixel( 0 ) ) { @@ -96,7 +88,7 @@ GenerateData( ) // Init queue std::queue< TIndex > q; - for( TIndex seed: this->m_Seeds ) + for( TIndex seed: this->GetSeeds( ) ) q.push( seed ); // Main loop