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

registration/clitkBLUTDIRGenericFilter.cxx

index 4de20a5856729ffb94190bf96bb8931b785c7670..3f78b4125e4aaf8378f4619b81b4f969767f9f9d 100644 (file)
@@ -387,6 +387,9 @@ namespace clitk
         // Crop the fixedImage to the bounding box to facilitate multi-resolution
         typedef itk::ExtractImageFilter<FixedImageType,FixedImageType> ExtractImageFilterType;
         typename ExtractImageFilterType::Pointer extractImageFilter=ExtractImageFilterType::New();
+#if ITK_VERSION_MAJOR == 4
+        extractImageFilter->SetDirectionCollapseToSubmatrix();
+#endif
         extractImageFilter->SetInput(fixedImage);
         extractImageFilter->SetExtractionRegion(transformRegion);
         extractImageFilter->Update();