From 6c8ecb1971240e7cc615362d1d1ec9b0bf2edda4 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Tue, 6 Nov 2012 10:23:38 +0100 Subject: [PATCH] Add option to detect too small segmented structures --- segmentation/clitkExtractLung.ggo | 2 +- segmentation/clitkExtractLungGenericFilter.txx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/segmentation/clitkExtractLung.ggo b/segmentation/clitkExtractLung.ggo index 0cae0f8..44b99a2 100644 --- a/segmentation/clitkExtractLung.ggo +++ b/segmentation/clitkExtractLung.ggo @@ -67,5 +67,5 @@ option "dir" d "Directions (axes) to perform filling (defaults to 2 section "Step 7 : lung separation (labelling)" option "doNotSeparateLungs" - "Do not separate lungs if set" flag off - +option "removeSmallLabel" - "Remove small label (stomach?) before separation" flag on option "noAutoCrop" - "If set : do no crop final mask to BoundingBox" flag off diff --git a/segmentation/clitkExtractLungGenericFilter.txx b/segmentation/clitkExtractLungGenericFilter.txx index 1fbb5c0..b9a94d8 100644 --- a/segmentation/clitkExtractLungGenericFilter.txx +++ b/segmentation/clitkExtractLungGenericFilter.txx @@ -113,6 +113,8 @@ SetOptionsFromArgsInfoToFilter(FilterType * f) else f->SetFillHolesFlag(true); + f->SetRemoveSmallLabelBeforeSeparationFlag(mArgsInfo.removeSmallLabel_flag); + if (mArgsInfo.doNotSeparateLungs_given) f->SetSeparateLungsFlag(false); else -- 2.47.1