Commit 5536f3df authored by Manuel Grizonnet's avatar Manuel Grizonnet

BUG: update output imageIO origin when box extended parameter is used

parent d505fc3d
......@@ -562,7 +562,7 @@ ImageFileWriter<TInputImage>
// Final image size
m_ImageIO->SetDimensions(i, inputRegion.GetSize(i));
m_ImageIO->SetSpacing(i, spacing[i]);
m_ImageIO->SetOrigin(i, origin[i]);
m_ImageIO->SetOrigin(i, origin[i] + static_cast<double>(inputRegion.GetIndex()[i]) * spacing[i]);
vnl_vector<double> axisDirection(TInputImage::ImageDimension);
// Please note: direction cosines are stored as columns of the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment