From: Romulo Pinho Date: Thu, 15 Nov 2012 08:30:11 +0000 (+0100) Subject: ITK4 compatibility X-Git-Tag: v1.4.0~239^2~13^2~2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7b4f9338e243e8c76e831736993135f6fdbd46b7;p=clitk.git ITK4 compatibility --- 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