From 9a2e366a95b2f819a45b2ae95c8db6f246762909 Mon Sep 17 00:00:00 2001
From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org>
Date: Tue, 26 Mar 2013 10:38:12 +0100
Subject: [PATCH] ENH: inverse start index and size

---
 Code/IO/otbImageFileWriter.txx | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/Code/IO/otbImageFileWriter.txx b/Code/IO/otbImageFileWriter.txx
index 8652240ac8..f7efe60315 100644
--- a/Code/IO/otbImageFileWriter.txx
+++ b/Code/IO/otbImageFileWriter.txx
@@ -474,8 +474,6 @@ ImageFileWriter<TInputImage>
   /** Parse region size modes */
   if(m_FilenameHelper->BoxIsSet())
     {
-    std::cout << "need to set image io" << std::endl;
-
     std::string buf; // Have a buffer string
     std::stringstream ss(m_FilenameHelper->GetBox()); // Insert the string into a stream
 
@@ -489,18 +487,17 @@ ImageFileWriter<TInputImage>
     typename InputImageType::IndexType start;
     typename InputImageType::SizeType  size;
 
+    start[0] = tokens[0];  // first index on X
+    start[1] = tokens[1];  // first index on Y
+
     size[0]  = tokens[2];  // size along X
     size[1]  = tokens[3];  // size along Y
 
-    start[0] = tokens[0];  // first index on X
-    start[1] = tokens[2];  // first index on Y
-
     inputRegion.SetSize(size);
     inputRegion.SetIndex(start);
-    }
-
-
 
+    std::cout << "inputRegion " << inputRegion << std::endl;
+    }
 
   /**
    * Determine of number of pieces to divide the input.  This will be the
-- 
GitLab