]> Creatis software - clitk.git/commitdiff
itkv4 migration
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 23 May 2011 09:09:31 +0000 (11:09 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Mon, 23 May 2011 09:09:31 +0000 (11:09 +0200)
- Add call to SetDirectionCollapseToSubmatrix needed by the
  ExtractImageFilter.

tools/clitkSplitImageGenericFilter.cxx

index 6585d892d7a7dcd94520af0d1a8c834c04d5ac5e..5a5e246e8c6eb81d11bf3d872c1cf3ba64ff94cb 100644 (file)
@@ -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();