]> Creatis software - clitk.git/blobdiff - segmentation/clitkExtractLungFilter.txx
Remove ITK3 and ITK4.2 tests and dependencies
[clitk.git] / segmentation / clitkExtractLungFilter.txx
index b76001f0491397c36648ddb86653c120ddcfb49c..596604b61f44b1f6e1c8c39115f3888a4f069734 100644 (file)
@@ -668,9 +668,7 @@ 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
@@ -752,11 +750,7 @@ SearchForTracheaSeed2(int numberOfSlices)
       for (unsigned int j = 0; j < nlables; j++) {
         shape = label_map->GetNthLabelObject(j);
         if (shape->Size() > 150 && shape->Size() <= max_size) {
-#if ITK_VERSION_MAJOR < 4
-          double e = 1 - 1/shape->GetBinaryElongation();
-#else
           double e = 1 - 1/shape->GetElongation();
-#endif
           //double area = 1 - r->Area() ;
           if (e < max_elongation) {
             nshapes++;