From b9dfb2f5af62cde86a9fb331ee522beabbee331e Mon Sep 17 00:00:00 2001 From: dsarrut Date: Mon, 2 May 2011 11:12:49 +0200 Subject: [PATCH] make compatible with ITKv4 --- itk/clitkExtractSliceFilter.txx | 3 +++ 1 file changed, 3 insertions(+) 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()); } -- 2.47.1