From f90f148d7763ad4ccc855f7d7dedc4f4ebd8f325 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Tue, 3 May 2011 14:19:27 +0200 Subject: [PATCH] itk4 migration: * Add SetDirectionCollapseToSubmatrix() to extractFilter --- common/vvImageReader.txx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/vvImageReader.txx b/common/vvImageReader.txx index aac9979..01fc707 100644 --- a/common/vvImageReader.txx +++ b/common/vvImageReader.txx @@ -118,6 +118,9 @@ void vvImageReader::UpdateWithDimAndInputPixelType() filter->SetExtractionRegion(extractedRegion); filter->SetInput(reader->GetOutput()); filter->ReleaseDataFlagOn(); +#if ITK_VERSION_MAJOR == 4 + filter->SetDirectionCollapseToSubmatrix(); +#endif try { mImage->AddItkImage(filter->GetOutput()); } catch ( itk::ExceptionObject & err ) { -- 2.45.1