diff --git a/include/otbTensorflowSampler.hxx b/include/otbTensorflowSampler.hxx
index 54850e3930246abe0085abe80ff1e70f1b6762e3..b7d4dd82a0f4e96a69c5469aff863188c99d3f8f 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);
   }