From: Vivien Delmon Date: Mon, 23 May 2011 09:09:31 +0000 (+0200) Subject: itkv4 migration X-Git-Tag: v1.3.0~348 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=afcd1adfda49e063cf87708b58457254784a8a7a;p=clitk.git itkv4 migration - Add call to SetDirectionCollapseToSubmatrix needed by the ExtractImageFilter. --- diff --git a/tools/clitkSplitImageGenericFilter.cxx b/tools/clitkSplitImageGenericFilter.cxx index 6585d89..5a5e246 100644 --- a/tools/clitkSplitImageGenericFilter.cxx +++ b/tools/clitkSplitImageGenericFilter.cxx @@ -63,6 +63,9 @@ void clitk::SplitImageGenericFilter::UpdateWithInputImageType() size[mSplitDimension]=0; typename ImageType::RegionType extracted_region; extracted_region.SetSize(size); +#if ITK_VERSION_MAJOR >= 4 + filter->SetDirectionCollapseToSubmatrix(); +#endif filter->SetExtractionRegion(extracted_region); filter->Update();