#ifndef __FPA__IMAGE__FUNCTORS__REGIONGROWTHRESHOLDFUNCTION__H__
#define __FPA__IMAGE__FUNCTORS__REGIONGROWTHRESHOLDFUNCTION__H__
-#include <limits>
+#include <itkNumericTraits.h>
#include <fpa/Image/Functors/RegionGrowAllBelongsFunction.h>
namespace fpa
virtual bool Evaluate( const TIndex& idx ) const
{
const I* img = this->GetSpace( );
+
if( img != NULL )
{
TPixel v = img->GetPixel( idx );
protected:
RegionGrowThresholdFunction( )
- : Superclass( ),
- m_LowerThreshold( std::numeric_limits< TPixel >::min( ) ),
- m_UpperThreshold( std::numeric_limits< TPixel >::max( ) )
- { }
+ : Superclass( )
+ {
+ itk::NumericTraits< TPixel >::min( this->m_LowerThreshold );
+ itk::NumericTraits< TPixel >::max( this->m_UpperThreshold );
+ }
virtual ~RegionGrowThresholdFunction( )
{ }