From de2c2b1161b7b0d60f4c9a9de568f3bb39284b6d Mon Sep 17 00:00:00 2001
From: remi <remi.cresson@irstea.fr>
Date: Tue, 5 Mar 2019 14:33:08 +0000
Subject: [PATCH] ENH: sampler preserve physical spacing in output patches

---
 include/otbTensorflowSampler.hxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/otbTensorflowSampler.hxx b/include/otbTensorflowSampler.hxx
index 54850e3..b7d4dd8 100644
--- a/include/otbTensorflowSampler.hxx
+++ b/include/otbTensorflowSampler.hxx
@@ -145,6 +145,7 @@ TensorflowSampler<TInputImage, TVectorData>
   {
     ImagePointerType newImage;
     AllocateImage(newImage, m_PatchSizes[i], nTotal, GetInput(i)->GetNumberOfComponentsPerPixel());
+    newImage->SetSignedSpacing(this->GetInput(i)->GetSignedSpacing());
     m_OutputPatchImages.push_back(newImage);
   }
 
-- 
GitLab