diff --git a/Testing/Code/FeatureExtraction/otbImageFittingPolygonListFilterNew.cxx b/Testing/Code/FeatureExtraction/otbImageFittingPolygonListFilterNew.cxx
index ecc01af65103fdb190484fe2546d2751adc401df..57d4e64028c7152628070a5cee9f0a75057273ba 100644
--- a/Testing/Code/FeatureExtraction/otbImageFittingPolygonListFilterNew.cxx
+++ b/Testing/Code/FeatureExtraction/otbImageFittingPolygonListFilterNew.cxx
@@ -25,8 +25,8 @@
 int otbImageFittingPolygonListFilterNew(int argc, char * argv[])
 {
   const unsigned int Dimension =2;
-  typedef otb::Polygon<double>                                     PolygonType;
-  typedef otb::Image<double,2> ImageType;
+  typedef otb::Polygon<double>           PolygonType;
+  typedef otb::Image<double,Dimension>   ImageType;
   
   typedef otb::ImageFittingPolygonListFilter<PolygonType,ImageType> FittingPolygonType;