Skip to content
Snippets Groups Projects
Commit 6bfac71c authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: fix vrTvImageLayer tests

parent 1df617d1
Branches
Tags
No related merge requests found
......@@ -684,8 +684,12 @@ ImageFileWriter<TInputImage>
// check that the image's buffered region is the same as
// ImageIO is expecting and we requested
InputImageRegionType ioRegion;
// No shift of the ioRegion from the buffered region is expected
typename InputImageRegionType::IndexType tmpIndex;
tmpIndex.Fill(0);
itk::ImageIORegionAdaptor<TInputImage::ImageDimension>::
Convert(m_ImageIO->GetIORegion(), ioRegion, largestRegion.GetIndex());
Convert(m_ImageIO->GetIORegion(), ioRegion, tmpIndex);
InputImageRegionType bufferedRegion = input->GetBufferedRegion();
// before this test, bad stuff would happend when they don't match
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment