1 #File clitkExtractPatient.ggo
2 package "clitkExtractPatient"
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."
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
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
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"
27 section "First Label Image (air=1)"
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"
34 section "Second Label Image (air=1)"
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
45 section "Labels to keep (air=1)"
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
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