From 7b4f9338e243e8c76e831736993135f6fdbd46b7 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Thu, 15 Nov 2012 09:30:11 +0100 Subject: [PATCH] ITK4 compatibility --- segmentation/clitkExtractLungFilter.txx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/segmentation/clitkExtractLungFilter.txx b/segmentation/clitkExtractLungFilter.txx index f84a095..a0acdd5 100644 --- a/segmentation/clitkExtractLungFilter.txx +++ b/segmentation/clitkExtractLungFilter.txx @@ -658,6 +658,9 @@ SearchForTracheaSeed2(int numberOfSlices) opening->Update(); typename SlicerFilterType::Pointer slicer = SlicerFilterType::New(); +#if ITK_VERSION_MAJOR >= 4 + slicer->SetDirectionCollapseToIdentity(); +#endif slicer->SetInput(opening->GetOutput()); // label result -- 2.47.1