X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FRegionGrow.hxx;h=503222c1fc7d9ec6f6c770d7ba74dfd764f6f66a;hb=f8a18f8692f5d4ef2c6aceb8a75838382be2eb4e;hp=247cf940ef4cbc1adf79d7453d58479f17c2603a;hpb=ed2108383e59a45c6fa2e9259a27256a93d8aa6a;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/RegionGrow.hxx b/lib/fpa/Base/RegionGrow.hxx index 247cf94..503222c 100644 --- a/lib/fpa/Base/RegionGrow.hxx +++ b/lib/fpa/Base/RegionGrow.hxx @@ -90,9 +90,8 @@ fpa::Base::RegionGrow< _TAlgorithm >:: // ------------------------------------------------------------------------- template< class _TAlgorithm > -typename fpa::Base::RegionGrow< _TAlgorithm >:: -TOutputValue fpa::Base::RegionGrow< _TAlgorithm >:: -_ComputeOutputValue( const TNode& n ) +bool fpa::Base::RegionGrow< _TAlgorithm >:: +_ComputeOutputValue( TNode& n ) { TInputValue value = this->_GetInputValue( n.Vertex ); bool inside = false; @@ -100,7 +99,8 @@ _ComputeOutputValue( const TNode& n ) inside = this->m_ValuePredicate->Evaluate( value ); if( this->m_VertexPredicate.IsNotNull( ) ) inside &= this->m_VertexPredicate->Evaluate( n.Vertex ); - return( ( inside )? this->m_InsideValue: this->m_InitValue ); + n.Value = ( inside )? this->m_InsideValue: this->m_InitValue; + return( inside ); } // -------------------------------------------------------------------------