From: Vivien Delmon Date: Mon, 12 Sep 2011 14:49:49 +0000 (+0200) Subject: itkv4 migration X-Git-Tag: v1.3.0~215^2~10 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f35fd3c5907b7763794ea27defa2c0cb513e71e0;p=clitk.git itkv4 migration - Add call to SetDirectionCollapseToSubmatrix needed by the ExtractImageFilter. --- diff --git a/registration/clitkBLUTDIRGenericFilter.cxx b/registration/clitkBLUTDIRGenericFilter.cxx index 4de20a5..3f78b41 100644 --- a/registration/clitkBLUTDIRGenericFilter.cxx +++ b/registration/clitkBLUTDIRGenericFilter.cxx @@ -387,6 +387,9 @@ namespace clitk // Crop the fixedImage to the bounding box to facilitate multi-resolution typedef itk::ExtractImageFilter ExtractImageFilterType; typename ExtractImageFilterType::Pointer extractImageFilter=ExtractImageFilterType::New(); +#if ITK_VERSION_MAJOR == 4 + extractImageFilter->SetDirectionCollapseToSubmatrix(); +#endif extractImageFilter->SetInput(fixedImage); extractImageFilter->SetExtractionRegion(transformRegion); extractImageFilter->Update();