From d399840fa60fa39e76928ca09b0368e5b0442e3e Mon Sep 17 00:00:00 2001 From: Manuel Grizonnet <manuel.grizonnet@orfeo-toolbox.org> Date: Thu, 11 Apr 2013 18:58:45 +0200 Subject: [PATCH] DOC: add debug msg to compare ioRegion --- Code/IO/otbImageFileWriter.txx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Code/IO/otbImageFileWriter.txx b/Code/IO/otbImageFileWriter.txx index 03dfac71c1..5ff031060c 100644 --- a/Code/IO/otbImageFileWriter.txx +++ b/Code/IO/otbImageFileWriter.txx @@ -623,7 +623,9 @@ ImageFileWriter<TInputImage> { ioRegion.SetSize(i, streamRegion.GetSize(i)); ioRegion.SetIndex(i, streamRegion.GetIndex(i)); + //ioRegion.SetIndex(i, streamRegion.GetIndex(i) - inputRegion.GetIndex(i)); } + otbMsgDevMacro(<< "ioregion " << ioRegion ) this->SetIORegion(ioRegion); m_ImageIO->SetIORegion(m_IORegion); @@ -725,6 +727,8 @@ ImageFileWriter<TInputImage> cacheImage->SetBufferedRegion(ioRegion); cacheImage->Allocate(); + otbMsgDevMacro(<< "ioRegion " << ioRegion); + typedef itk::ImageRegionConstIterator<TInputImage> ConstIteratorType; typedef itk::ImageRegionIterator<TInputImage> IteratorType; -- GitLab