diff --git a/Testing/Code/Projections/otbOptResampleImageFilter.cxx b/Testing/Code/Projections/otbOptResampleImageFilter.cxx
index 10ec2737461bb2db264907d3f2db822c757f33de..d957ec6e60da88cff3db79559a307a1a4a4433f7 100644
--- a/Testing/Code/Projections/otbOptResampleImageFilter.cxx
+++ b/Testing/Code/Projections/otbOptResampleImageFilter.cxx
@@ -84,6 +84,7 @@ int otbOptResampleImageFilter(int argc, char* argv[])
   
   /** Set the OptResampler Parameters*/
   resampler->SetInput(reader->GetOutput());
+  resampler->SetOutputParametersFromImage(reader->GetOutput());
   resampler->SetTransform(affineTransform);
   resampler->SetDeformationFieldSpacing(5.); // TODO : add the spacing
                                              // it to the