1 // =======================================================================
2 // @author: Leonardo Florez-Valencia
3 // @email: florez-l@javeriana.edu.co
4 // =======================================================================
5 #ifndef __ivq__ITK__ExtractLabelFunction__hxx__
6 #define __ivq__ITK__ExtractLabelFunction__hxx__
10 // -------------------------------------------------------------------------
11 template< class _TIn, class _TOut >
12 _TOut ivq::ITK::ExtractLabelFunction< _TIn, _TOut >::
13 Evaluate( const _TIn& in ) const
15 return( ( in == this->m_Label )? this->m_InsideValue: this->m_OutsideValue );
18 // -------------------------------------------------------------------------
19 template< class _TIn, class _TOut >
20 ivq::ITK::ExtractLabelFunction< _TIn, _TOut >::
21 ExtractLabelFunction( )
24 m_InsideValue( std::numeric_limits< _TOut >::max( ) ),
25 m_OutsideValue( _TOut( 0 ) )
29 // -------------------------------------------------------------------------
30 template< class _TIn, class _TOut >
31 ivq::ITK::ExtractLabelFunction< _TIn, _TOut >::
32 ~ExtractLabelFunction( )
36 #endif // __ivq__ITK__ExtractLabelFunction__hxx__