1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Image__Functors__RegionGrow__BinaryThreshold__hxx__
7 #define __fpa__Image__Functors__RegionGrow__BinaryThreshold__hxx__
9 // -------------------------------------------------------------------------
10 template< class _TPixel >
11 bool fpa::Image::Functors::RegionGrow::BinaryThreshold< _TPixel >::
12 Evaluate( const TPixel& value ) const
14 return( this->m_Lower < value && value < this->m_Upper );
17 // -------------------------------------------------------------------------
18 template< class _TPixel >
19 fpa::Image::Functors::RegionGrow::BinaryThreshold< _TPixel >::
23 this->m_Upper = std::numeric_limits< TPixel >::max( );
24 if( std::numeric_limits< TPixel >::is_integer )
25 this->m_Lower = std::numeric_limits< TPixel >::min( );
27 this->m_Lower = -this->m_Upper;
30 // -------------------------------------------------------------------------
31 template< class _TPixel >
32 fpa::Image::Functors::RegionGrow::BinaryThreshold< _TPixel >::
37 #endif // __fpa__Image__Functors__RegionGrow__BinaryThreshold__hxx__