]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Image/RegionGrow.hxx
Major refactoring
[FrontAlgorithms.git] / lib / fpa / Image / RegionGrow.hxx
1 #ifndef __FPA__IMAGE__REGIONGROW__HXX__
2 #define __FPA__IMAGE__REGIONGROW__HXX__
3
4 // -------------------------------------------------------------------------
5 template< class I, class O >
6 fpa::Image::RegionGrow< I, O >::
7 RegionGrow( )
8   : Superclass( )
9 {
10 }
11
12 // -------------------------------------------------------------------------
13 template< class I, class O >
14 fpa::Image::RegionGrow< I, O >::
15 ~RegionGrow( )
16 {
17 }
18
19 // -------------------------------------------------------------------------
20 template< class I, class O >
21 bool fpa::Image::RegionGrow< I, O >::
22 _CheckMembership( const TVertex& v ) const
23 {
24   if( this->m_MembershipFunction.IsNotNull( ) )
25     return( this->m_MembershipFunction->Evaluate( this->_VertexValue( v ) ) );
26   else
27     return( false );
28 }
29
30 // -------------------------------------------------------------------------
31 template< class I, class O >
32 void fpa::Image::RegionGrow< I, O >::
33 _InitResults( )
34 {
35   this->Superclass::_InitResults( );
36   this->GetOutput( )->FillBuffer( this->m_OutsideValue );
37 }
38
39 #endif // __FPA__IMAGE__REGIONGROW__HXX__
40
41 // eof - $RCSfile$