]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Image/RegionGrow.h
Minor bugs
[FrontAlgorithms.git] / lib / fpa / Image / RegionGrow.h
index d65fa6cbbe815e9a3b3c21a290cc18357cec4421..dd7c851a5bf5324ad12b72d101a9f59910e57232 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __FPA__IMAGE__REGIONGROW__H__
 #define __FPA__IMAGE__REGIONGROW__H__
 
-#include <itkImageFunction.h>
 #include <itkImageToImageFilter.h>
 #include <itkIndex.h>
 #include <fpa/Base/RegionGrow.h>
 #include <fpa/Image/Algorithm.h>
+#include <fpa/Image/Functors/ImageFunction.h>
 
 namespace fpa
 {
@@ -31,7 +31,9 @@ namespace fpa
       typedef itk::SmartPointer< Self >       Pointer;
       typedef itk::SmartPointer< const Self > ConstPointer;
 
-      typedef itk::ImageFunction< I, bool > TMembershipFunction;
+      typedef
+      fpa::Image::Functors::ImageFunction< I, bool >
+      TMembershipFunction;
 
     public:
       itkNewMacro( Self );
@@ -59,7 +61,7 @@ namespace fpa
               this->GetInput( )
               )
               this->m_MembershipFunction->SetInputImage( this->GetInput( ) );
-            return( this->m_MembershipFunction->EvaluateAtIndex( n.Vertex ) );
+            return( this->m_MembershipFunction->Evaluate( n.Vertex ) );
           }
           else
             return( false );