From f35fd3c5907b7763794ea27defa2c0cb513e71e0 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Mon, 12 Sep 2011 16:49:49 +0200 Subject: [PATCH] itkv4 migration - Add call to SetDirectionCollapseToSubmatrix needed by the ExtractImageFilter. --- registration/clitkBLUTDIRGenericFilter.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.47.1