Skip to content
Snippets Groups Projects
Commit 5536f3df authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

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

parent d505fc3d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment