]> Creatis software - clitk.git/blob - segmentation/clitkExtractPatient.ggo
Merge branch 'master' of git.creatis.insa-lyon.fr:clitk
[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 option "verboseMemory"  -  "Display memory usage"         flag          off
14
15 section "I/O"
16
17 option "input"   i      "Input image filename"               string  yes
18 option "afdb"    a      "Output Anatomical Feature in a DB"  string  no
19 option "output"  o      "Output image filename"              string  yes
20
21 section "Binarize"
22
23 option "lower"          -       "Initial lower threshold"       double          no      
24 option "upper"          -       "Initial upper threshold"       double          no      default="-300"
25 option "openingRadius"    - "Radius for opening after threshold"  int no  default="0"
26
27 section "First Label Image (air=1)"
28
29 option "erode1"          -      "Decompose through erosion"             flag            off     
30 option "radius1"         -      "Radius for erosion and dilation"       int             multiple        no      default="1"
31 option "new1"            -      "Number of new labels"                  int             no      default="1"     
32 option "max1"            -      "Max number of labels to consider"      int             no      default="2"     
33
34 section "Second Label Image (air=1)"
35
36 option "erode2"          -      "Decompose through erosion"             flag            off     
37 option "radius2"         -      "Radius for erosion and dilation"       int             multiple        no      default="1"
38 option "new2"            -      "Number of new labels"                  int             no      default="1"     
39 option "max2"            -      "Max number of labels to consider"      int             no      default="2"     
40 # option "crop"         -       "Crop the first label image"            flag    off     
41 # option "boundingBox"          b       "Bounding box of the crop region (minX,maxX,...)" int   no  multiple
42 # option "lowerS"       -       "Size of the lower crop region"   int   no  multiple
43 # option "upperS"       -       "Size of the upper crop region"   int   no  multiple
44
45 section "Labels to keep (air=1)"
46
47 option  "firstKeep"     -               "First label to keep"                   int     no      default="1"
48 option  "lastKeep"      -               "Last label to keep"                    int     no      default="1"     
49 option  "remove"        -               "Labels to remove"                      int     no      multiple        
50
51 section "Clean-up"
52
53 option "openClose"      -       "Perform morphological opening and closing with unit radius"    flag    off
54 option "noAutoCrop"     -       "If set : do no crop final mask to BoundingBox"                         flag    off
55
56