]> Creatis software - clitk.git/commitdiff
Fix for one slice only
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 27 Feb 2014 08:48:51 +0000 (09:48 +0100)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 27 Feb 2014 08:48:51 +0000 (09:48 +0100)
tools/clitkSplitImageGenericFilter.cxx

index 71d93c5bc4f2245e7dbbcf6dd3d54b48da7f7e59..72f712c9be1614b6fca13ef35aa102f4119f9af9 100644 (file)
@@ -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();