From c1120a380d3f212fafe798a8c397c9fb4ab952d4 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Thu, 27 Feb 2014 09:48:51 +0100 Subject: [PATCH] Fix for one slice only --- tools/clitkSplitImageGenericFilter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.47.1