From b06cb80989347d3076095186e463aa251f3d6c91 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Fri, 22 Apr 2011 15:08:36 +0200 Subject: [PATCH] itk4 migration: * Add SetDirectionCollapseToSubmatrix() to extractFilter --- segmentation/clitkFillMaskFilter.txx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/segmentation/clitkFillMaskFilter.txx b/segmentation/clitkFillMaskFilter.txx index 19b04f3..7d2369c 100644 --- a/segmentation/clitkFillMaskFilter.txx +++ b/segmentation/clitkFillMaskFilter.txx @@ -141,6 +141,9 @@ GenerateData() start2D[m_Directions[i]]=sliceIndex; desiredRegion.SetIndex( start2D ); extractFilter->SetExtractionRegion( desiredRegion ); +#if ITK_VERSION_MAJOR == 4 + extractFilter->SetDirectionCollapseToSubmatrix(); +#endif extractFilter->Update( ); typename ImageSliceType::Pointer slice= extractFilter->GetOutput(); -- 2.47.1