diff --git a/Code/Projections/otbOptResampleImageFilter.h b/Code/Projections/otbOptResampleImageFilter.h
index 486666b2f513727a49bebfb7e056f4cee4b5d9a2..408198fd38c757e616aebc8f322c4b21f8cfd3af 100644
--- a/Code/Projections/otbOptResampleImageFilter.h
+++ b/Code/Projections/otbOptResampleImageFilter.h
@@ -23,6 +23,7 @@
 #include "itkTransformToDeformationFieldSource.h"
 #include "itkLinearInterpolateImageFunction.h"
 #include "itkInterpolateImageFunction.h"
+#include "itkVector.h"
 
 namespace otb
 {
@@ -95,7 +96,6 @@ public:
 
   /** The Deformation field spacing & size */
   itkSetMacro(DeformationFieldSpacing,SpacingType);
-  itkSetMacro(DeformationGridSize,SizeType);
   
   /** The resampled image parameters */
   // Output Origin