]> Creatis software - clitk.git/commitdiff
ITK4 compatibility
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Thu, 15 Nov 2012 08:30:11 +0000 (09:30 +0100)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Thu, 15 Nov 2012 08:30:11 +0000 (09:30 +0100)
segmentation/clitkExtractLungFilter.txx

index f84a0956fb61d1bc48cf202c5481267e132bf2cd..a0acdd5ad2ab48aa3669d58f8d9d22171b74d329 100644 (file)
@@ -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