1 #ifndef __fpa__Image__Functors__RegionGrowBinaryThreshold__hxx__
2 #define __fpa__Image__Functors__RegionGrowBinaryThreshold__hxx__
4 // -------------------------------------------------------------------------
5 template< class _TImage >
6 bool fpa::Image::Functors::RegionGrowBinaryThreshold< _TImage >::
7 Evaluate( const TIndex& a, const TIndex& b ) const
10 dynamic_cast< const _TImage* >( this->m_Image.GetPointer( ) );
11 TPixel v = im->GetPixel( b );
12 return( this->m_LowerThreshold <= v && v <= this->m_UpperThreshold );
15 // -------------------------------------------------------------------------
16 template< class _TImage >
17 fpa::Image::Functors::RegionGrowBinaryThreshold< _TImage >::
18 RegionGrowBinaryThreshold( )
20 m_LowerThreshold( TPixel( 0 ) ),
21 m_UpperThreshold( std::numeric_limits< TPixel >::max( ) )
25 // -------------------------------------------------------------------------
26 template< class _TImage >
27 fpa::Image::Functors::RegionGrowBinaryThreshold< _TImage >::
28 ~RegionGrowBinaryThreshold( )
32 #endif // __fpa__Image__Functors__RegionGrowBinaryThreshold__hxx__