From c5be56733dcd68102e90066da724e030aa00269f Mon Sep 17 00:00:00 2001
From: Antoine Regimbeau <antoine.regimbeau@c-s.fr>
Date: Tue, 31 Oct 2017 16:19:33 +0100
Subject: [PATCH] BUG : add transmission of direction to itkResampleImageFilter

---
 .../include/otbMorphologicalPyramidResampler.txx               | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Modules/Filtering/MorphologicalPyramid/include/otbMorphologicalPyramidResampler.txx b/Modules/Filtering/MorphologicalPyramid/include/otbMorphologicalPyramidResampler.txx
index aec83b9230..b1fad675a3 100644
--- a/Modules/Filtering/MorphologicalPyramid/include/otbMorphologicalPyramidResampler.txx
+++ b/Modules/Filtering/MorphologicalPyramid/include/otbMorphologicalPyramidResampler.txx
@@ -150,7 +150,8 @@ Resampler<TInputImage, TOutputImage>
   resampler->SetInterpolator(interpolator);
   resampler->SetOutputOrigin(this->GetInput()->GetOrigin());
   resampler->SetSize(this->GetSize());
-  resampler->SetOutputSpacing(inputSpacing);
+  resampler->SetOutputSpacing( this->GetInput()->GetSpacing() );
+  resampler->SetOutputDirection( this->GetInput()->GetDirection() );
   resampler->ReleaseDataFlagOn();
 
   // Progress accumulator
-- 
GitLab