From f3b7c7ce4103eb7d222fdf3602265adbf6a3daa1 Mon Sep 17 00:00:00 2001
From: remi cresson <remi.cresson@teledetection.fr>
Date: Thu, 22 Feb 2018 17:41:59 +0000
Subject: [PATCH] FIX: enforce ITK4.13 positive spacing

---
 app/otbLSGRM.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/otbLSGRM.cxx b/app/otbLSGRM.cxx
index 20e9330..ce21bc7 100644
--- a/app/otbLSGRM.cxx
+++ b/app/otbLSGRM.cxx
@@ -234,7 +234,7 @@ private:
     labelImageSource->SetGraph(controller->GetOutputGraph());
     labelImageSource->SetOutputSize(inputImage->GetLargestPossibleRegion().GetSize());
     labelImageSource->SetOutputOrigin(inputImage->GetOrigin());
-    labelImageSource->SetOutputSpacing(inputImage->GetSpacing());
+    labelImageSource->SetOutputSpacing(inputImage->GetSignedSpacing());
     labelImageSource->SetOutputProjectionRef(inputImage->GetProjectionRef());
     labelImageSource->GenerateOutputInformation();
 
@@ -246,7 +246,7 @@ private:
     if (dynamic_cast<OutputImageParameter*>(GetParameterByKey("out")))
       {
       OutputImageParameter* paramDown = dynamic_cast<OutputImageParameter*>(GetParameterByKey("out"));
-      paramDown->SetRAMValue(256);
+      paramDown->SetRAMValue(1024);
       }
 
     // Get temporary files list
-- 
GitLab