From: dsarrut Date: Mon, 2 May 2011 09:12:49 +0000 (+0200) Subject: make compatible with ITKv4 X-Git-Tag: v1.2.0^2~10 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b9dfb2f5af62cde86a9fb331ee522beabbee331e;p=clitk.git make compatible with ITKv4 --- diff --git a/itk/clitkExtractSliceFilter.txx b/itk/clitkExtractSliceFilter.txx index deabdfc..43874d0 100644 --- a/itk/clitkExtractSliceFilter.txx +++ b/itk/clitkExtractSliceFilter.txx @@ -118,6 +118,9 @@ GenerateData() { m_index[GetDirection()] = start + i; m_region.SetIndex(m_index); extract->SetExtractionRegion(m_region); +#if ITK_VERSION_MAJOR == 4 + extract->SetDirectionCollapseToSubmatrix(); +#endif extract->Update(); SetNthOutput(i, extract->GetOutput()); }