X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FRegionGrow.hxx;h=247cf940ef4cbc1adf79d7453d58479f17c2603a;hb=fe01e92d9bce3519fa2a0936b6180ca7b057a87a;hp=18bb1324518c0d637813e46cbc7b3dd8f7601773;hpb=c4efafee513539e9a58c4a8b8369450ada1df5d8;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/RegionGrow.hxx b/lib/fpa/Base/RegionGrow.hxx index 18bb132..247cf94 100644 --- a/lib/fpa/Base/RegionGrow.hxx +++ b/lib/fpa/Base/RegionGrow.hxx @@ -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$