From: Vivien Delmon Date: Tue, 3 May 2011 12:19:27 +0000 (+0200) Subject: itk4 migration: X-Git-Tag: v1.2.0~5 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f90f148d7763ad4ccc855f7d7dedc4f4ebd8f325;p=clitk.git itk4 migration: * Add SetDirectionCollapseToSubmatrix() to extractFilter --- 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 ) {