]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/Functors/RegionGrowThresholdFunction.h
...
[FrontAlgorithms.git] / lib / fpa / Image / Functors / RegionGrowThresholdFunction.h
index 1ac7c8f080c3acfc155f390a35f2d75720011945..4ec4bbfb520ccacaa9cc83a38fee270173125e98 100644 (file)
@@ -42,9 +42,10 @@ namespace fpa
         itkSetMacro( UpperThreshold, TPixel );
 
       public:
-        virtual bool Evaluate( const TIndex& idx ) const
+        virtual bool Evaluate( const TIndex& idx ) const ITK_OVERRIDE
           {
             const I* img = this->GetSpace( );
+
             if( img != NULL )
             {
               TPixel v = img->GetPixel( idx );
@@ -58,10 +59,11 @@ namespace fpa
 
       protected:
         RegionGrowThresholdFunction( )
-          : Superclass( ),
-            m_LowerThreshold( itk::NumericTraits< TPixel >::min( ) ),
-            m_UpperThreshold( itk::NumericTraits< TPixel >::max( ) )
-          { }
+          : Superclass( )
+          {
+            itk::NumericTraits< TPixel >::min( this->m_LowerThreshold );
+            itk::NumericTraits< TPixel >::max( this->m_UpperThreshold );
+          }
         virtual ~RegionGrowThresholdFunction( )
           { }