]> Creatis software - clitk.git/blob - segmentation/clitkExtractPatient.ggo
add option to display memory usage if statgrab is installed
[clitk.git] / segmentation / clitkExtractPatient.ggo
1 #File clitkExtractPatient.ggo
2 package "clitkExtractPatient"
3 version "1.0"
4 purpose "Input is binarized using initial thresholds, connected components are labeled (firstLabel). The air label (1) is removed. The remaining is binarized and relabeled, patient should now be the principal label (secondLabel). Two mechanismes are provided to influence the label images. Crop to reduce connectivity (image is restored to original size), eg for SBF. Decomposition through ersion and reconstruction through dilation (slow), eg for Pulmo bellows. Choose which labels to keep from second Label image. Final mask is cleaned by opening and closing."
5
6 option "config"         -  "Config file"                  string        no
7 option "imagetypes"     -  "Display allowed image types"  flag          off
8 option "verbose"        v  "Verbose"                      flag          off
9 option "verboseStep"    -  "Verbose each step"            flag          off
10 option "writeStep"      w  "Write image at each step"     flag          off
11 option "verboseOption"  -  "Display options values"       flag          off
12 option "verboseWarningOff" -  "Do not display warning"    flag          off
13
14 section "I/O"
15
16 option "input"   i      "Input image filename"               string  yes
17 option "afdb"    a      "Output Anatomical Feature in a DB"  string  no
18 option "output"  o      "Output image filename"              string  yes
19
20 section "Binarize"
21
22 option "lower"          -       "Initial lower threshold"       double          no      
23 option "upper"          -       "Initial upper threshold"       double          no      default="-300"
24
25 section "First Label Image (air=1)"
26
27 option "erode1"          -      "Decompose through erosion"             flag            off     
28 option "radius1"         -      "Radius for erosion and dilation"       int             multiple        no      default="1"
29 option "new1"            -      "Number of new labels"                  int             no      default="1"     
30 option "max1"            -      "Max number of labels to consider"      int             no      default="2"     
31
32 section "Second Label Image (air=1)"
33
34 option "erode2"          -      "Decompose through erosion"             flag            off     
35 option "radius2"         -      "Radius for erosion and dilation"       int             multiple        no      default="1"
36 option "new2"            -      "Number of new labels"                  int             no      default="1"     
37 option "max2"            -      "Max number of labels to consider"      int             no      default="2"     
38 # option "crop"         -       "Crop the first label image"            flag    off     
39 # option "boundingBox"          b       "Bounding box of the crop region (minX,maxX,...)" int   no  multiple
40 # option "lowerS"       -       "Size of the lower crop region"   int   no  multiple
41 # option "upperS"       -       "Size of the upper crop region"   int   no  multiple
42
43 section "Labels to keep (air=1)"
44
45 option  "firstKeep"     -               "First label to keep"                   int     no      default="1"
46 option  "lastKeep"      -               "Last label to keep"                    int     no      default="1"     
47 option  "remove"        -               "Labels to remove"                      int     no      multiple        
48
49 section "Clean-up"
50
51 option "openClose"      -       "Perform morphological opening and closing with unit radius"    flag    off
52 option "noAutoCrop"     -       "If set : do no crop final mask to BoundingBox"                         flag    on
53
54