]> Creatis software - FrontAlgorithms.git/blobdiff - libs/fpa/Image/RegionGrow.hxx
...
[FrontAlgorithms.git] / libs / fpa / Image / RegionGrow.hxx
index 0cf74deca72c5af32a8834e34fa38e525357b4a2..facd9f80956f7da34923a8ff7f84fe80e5db4ca5 100644 (file)
@@ -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