From: David Sarrut Date: Tue, 6 Nov 2012 09:23:38 +0000 (+0100) Subject: Add option to detect too small segmented structures X-Git-Tag: v1.4.0~278 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6c8ecb1971240e7cc615362d1d1ec9b0bf2edda4;p=clitk.git Add option to detect too small segmented structures --- 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