]> Creatis software - clitk.git/commitdiff
itk4 migration:
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 3 May 2011 12:19:27 +0000 (14:19 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 3 May 2011 12:19:27 +0000 (14:19 +0200)
* Add SetDirectionCollapseToSubmatrix() to extractFilter

common/vvImageReader.txx

index aac9979fc330d265d9f14e7d7b346860cd6ffa5f..01fc707ed910373e5b96af38544083e0f7d4b03b 100644 (file)
@@ -118,6 +118,9 @@ void vvImageReader::UpdateWithDimAndInputPixelType()
     filter->SetExtractionRegion(extractedRegion);
     filter->SetInput(reader->GetOutput());
     filter->ReleaseDataFlagOn();
+#if ITK_VERSION_MAJOR == 4
+    filter->SetDirectionCollapseToSubmatrix();
+#endif
     try {
       mImage->AddItkImage<SlicedImageType>(filter->GetOutput());
     } catch ( itk::ExceptionObject & err ) {