diff --git a/Code/FeatureExtraction/otbGeometricMomentPathFunction.h b/Code/FeatureExtraction/otbGeometricMomentPathFunction.h
index a2250d0a52d4f994f21d1b763e71b7dceeb287ce..01b4a9164cd3b3b293fcb67ce090f6dd7addeb8c 100644
--- a/Code/FeatureExtraction/otbGeometricMomentPathFunction.h
+++ b/Code/FeatureExtraction/otbGeometricMomentPathFunction.h
@@ -6,7 +6,7 @@
   Date      :   22 mars 2006
   Version   :   
   Role      :   Geometric Moments Class of path 
-  $Id:$
+  $Id$
 
 =========================================================================*/
 #ifndef _otbGeometricMomentPathFunction_h
@@ -30,7 +30,7 @@ template < class TInputImage,
            class TOutput   = float,
 	   class TCoordRep = float >
 class ITK_EXPORT GeometricMomentPathFunction :
-  public itk::ImageFunction<TInputImage , TInputPath, TOutput, TCoordRep >
+  public PathFunction<TInputImage , TInputPath, TOutput, TCoordRep >
 {
 public:
   /** Standard class typedefs. */
diff --git a/Testing/Code/FeatureExtraction/otbComplexMomentPath.cxx b/Testing/Code/FeatureExtraction/otbComplexMomentPath.cxx
index 038b2a7775d592948e153febae8c90722739f8ad..2b15da896b54fd44a3cc5c787346bc33217cdffd 100644
--- a/Testing/Code/FeatureExtraction/otbComplexMomentPath.cxx
+++ b/Testing/Code/FeatureExtraction/otbComplexMomentPath.cxx
@@ -35,9 +35,9 @@ int otbComplexMomentPath( int argc, char ** argv )
 	typedef InputImageType::PointType                 ImagePointType;
         typedef otb::ImageFileReader< InputImageType  >   ReaderType;
 	  
-	typedef itk::PolyLineParametricPath< Dimension >	                    PathType;
-	typedef std::complex<double>                                                ComplexType
-	typedef otb::ComplexMomentPathFunction<InputImageType,PathType,ComplexType> CMType;
+	typedef itk::PolyLineParametricPath< Dimension >	        PathType;
+	typedef otb::ComplexMomentPathFunction<InputImageType,PathType> CMType;
+	typedef typename CMType::ComplexType                            ComplexType;
   
         ReaderType::Pointer reader         = ReaderType::New();	
         reader->SetFileName( inputFilename  );