From e12ede766c22bc4b259bc099a37ad3d5d184070e Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 8 Sep 2010 14:06:22 +0200
Subject: [PATCH] ENH : fill output with input parameters

---
 Testing/Code/Projections/otbOptResampleImageFilter.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Testing/Code/Projections/otbOptResampleImageFilter.cxx b/Testing/Code/Projections/otbOptResampleImageFilter.cxx
index 10ec273746..d957ec6e60 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
-- 
GitLab