// ========================================================================= // @author Leonardo Florez Valencia // @email florez-l@javeriana.edu.co // ========================================================================= #ifndef __fpa__Image__Functors__RegionGrow__BinaryThreshold__hxx__ #define __fpa__Image__Functors__RegionGrow__BinaryThreshold__hxx__ // ------------------------------------------------------------------------- template< class _TPixel > bool fpa::Image::Functors::RegionGrow::BinaryThreshold< _TPixel >:: Evaluate( const TPixel& value ) const { return( this->m_Lower < value && value < this->m_Upper ); } // ------------------------------------------------------------------------- template< class _TPixel > fpa::Image::Functors::RegionGrow::BinaryThreshold< _TPixel >:: BinaryThreshold( ) : Superclass( ) { this->m_Upper = std::numeric_limits< TPixel >::max( ); if( std::numeric_limits< TPixel >::is_integer ) this->m_Lower = std::numeric_limits< TPixel >::min( ); else this->m_Lower = -this->m_Upper; } // ------------------------------------------------------------------------- template< class _TPixel > fpa::Image::Functors::RegionGrow::BinaryThreshold< _TPixel >:: ~BinaryThreshold( ) { } #endif // __fpa__Image__Functors__RegionGrow__BinaryThreshold__hxx__ // eof - $RCSfile$