From: Vivien Delmon Date: Fri, 22 Apr 2011 13:08:36 +0000 (+0200) Subject: itk4 migration: X-Git-Tag: v1.2.0~22 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b06cb80989347d3076095186e463aa251f3d6c91;p=clitk.git itk4 migration: * Add SetDirectionCollapseToSubmatrix() to extractFilter --- 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();