From: Simon Rit Date: Thu, 27 Feb 2014 08:48:51 +0000 (+0100) Subject: Fix for one slice only X-Git-Tag: v1.4.0~129 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c1120a380d3f212fafe798a8c397c9fb4ab952d4;p=clitk.git Fix for one slice only --- diff --git a/tools/clitkSplitImageGenericFilter.cxx b/tools/clitkSplitImageGenericFilter.cxx index 71d93c5..72f712c 100644 --- a/tools/clitkSplitImageGenericFilter.cxx +++ b/tools/clitkSplitImageGenericFilter.cxx @@ -106,7 +106,7 @@ void clitk::SplitImageGenericFilter::UpdateWithInputImageType() typename ImageType::RegionType extracted_region; extracted_region.SetSize(size); #if ITK_VERSION_MAJOR >= 4 - filter->SetDirectionCollapseToSubmatrix(); + filter->SetDirectionCollapseToIdentity(); #endif filter->SetExtractionRegion(extracted_region); filter->Update();