]> Creatis software - clitk.git/commitdiff
Add option to detect too small segmented structures
authorDavid Sarrut <david.sarrut@gmail.com>
Tue, 6 Nov 2012 09:23:38 +0000 (10:23 +0100)
committerDavid Sarrut <david.sarrut@gmail.com>
Tue, 6 Nov 2012 09:23:38 +0000 (10:23 +0100)
segmentation/clitkExtractLung.ggo
segmentation/clitkExtractLungGenericFilter.txx

index 0cae0f89ad0a926ba70e365d0e0e779e56b06435..44b99a201f468840b8a1e9c12c5154562f098699 100644 (file)
@@ -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
index 1fbb5c04ba41c611bbb9a3de8f138597fb2c4520..b9a94d86aeef3b3b273ff9176786eb5ba214bc50 100644 (file)
@@ -113,6 +113,8 @@ SetOptionsFromArgsInfoToFilter(FilterType * f)
   else
     f->SetFillHolesFlag(true);
 
+  f->SetRemoveSmallLabelBeforeSeparationFlag(mArgsInfo.removeSmallLabel_flag);
+
   if (mArgsInfo.doNotSeparateLungs_given)
     f->SetSeparateLungsFlag(false);
   else