]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/RegionGrow.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / RegionGrow.hxx
index 18bb1324518c0d637813e46cbc7b3dd8f7601773..247cf940ef4cbc1adf79d7453d58479f17c2603a 100644 (file)
@@ -103,18 +103,6 @@ _ComputeOutputValue( const TNode& n )
   return( ( inside )? this->m_InsideValue: this->m_InitValue );
 }
 
-// -------------------------------------------------------------------------
-template< class _TAlgorithm >
-void fpa::Base::RegionGrow< _TAlgorithm >::
-_QueueInit( )
-{
-  typedef typename Superclass::TSeedsInterface::TSeeds::iterator _TIt;
-
-  this->Superclass::_QueueInit( );
-  for( _TIt sIt = this->BeginSeeds( ); sIt != this->EndSeeds( ); ++sIt )
-    sIt->Value = this->m_InsideValue;
-}
-
 // -------------------------------------------------------------------------
 template< class _TAlgorithm >
 void fpa::Base::RegionGrow< _TAlgorithm >::
@@ -150,6 +138,16 @@ _QueueSize( ) const
   return( this->m_Queue.size( ) );
 }
 
+// -------------------------------------------------------------------------
+template< class _TAlgorithm >
+void fpa::Base::RegionGrow< _TAlgorithm >::
+_PrepareSeeds( TNodes& nodes )
+{
+  typename TNodes::iterator nIt = nodes.begin( );
+  for( ; nIt != nodes.end( ); ++nIt )
+    nIt->Value = this->m_InsideValue;
+}
+
 #endif // __fpa__Base__RegionGrow__hxx__
 
 // eof - $RCSfile$