From afcd1adfda49e063cf87708b58457254784a8a7a Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Mon, 23 May 2011 11:09:31 +0200 Subject: [PATCH] itkv4 migration - Add call to SetDirectionCollapseToSubmatrix needed by the ExtractImageFilter. --- tools/clitkSplitImageGenericFilter.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.47.1