-
Notifications
You must be signed in to change notification settings - Fork 2
/
getopts.ggo
38 lines (34 loc) · 2.65 KB
/
getopts.ggo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package "zncc"
version "2.0"
#purpose "Generate ZNCC based depthmap of two given images im0.png and im1.png"
usage "zncc [OPTIONS]"
description "Computes ZNCC based depthmap. Looks for im0.png and im1.png in working directory. Outputs to outputs/depthmap.png relative to working directory. See zncc.cpp for details."
versiontext "Multithreaded and OpenCL (GPU) implementation"
#args "<command line options>"
option "use-gpu" - "Use GPU for computation." flag off
option "maximum-disparity" d "The maximum disparity between images." int default="64" optional
option "threshold" t "The threshold used for cross-checking." int default="8" optional
option "window-size" w "Side of the window used for zncc. Must be odd. (Ex: 11, window has 121 elements)" int default="9" optional
option "neighbourhood-size" n "The neighbourhood size for occlusion filling." int default="8" optional
option "show-status" - "Print status-update messages that describe the ongoing activity." flag off
option "platform-number" - "The platform number (different from platform ID) varies from 0..N_PLATFORMS-1. Use a tool like clinfo to customize this." int default="0" optional
option "device-number" - "The device number (different from device ID) varies from 0..N_DEVICES-1. Use a tool like clinfo to customize this." int default="0" optional
option "nthreads" - "Number of threads for zncc computation. Has no effect when using GPU." int default="1" optional
option "skip-depthmapping" s "OBSELETE. Previously, this flag had been used to skip computation of preliminary depthmaps, and reuse previously output images. Has no effect when using GPU. This option will use images specified by --image-0 and --image-1 options. if ommitted, it looks for previously output files at ./outputs/ directory, and use them to perform just cross-checking and occlusion-filling. Missing files would cause the program to terminate. `d0_filepath` and `d1_filepath` in zncc.cpp define the default files that will be looked for." flag off
option "image-0" - "Image 0 filepath" string optional
option "image-1" - "Image 1 filepath" string optional
option "shrink-by" - "Shrink factor to downscale image. Typically set to 1 when skipping depthmapping step." int default="4" optional
#{typestr="<type descr>"}
#{values="<value1>","<value2>",...}
#{default="<default value>"}
#{dependon="<other option>"}
#{required} {argoptional} {multiple}
#{hidden}
#option <long> <short> "<desc>" flag <on/off>
text "\n"
text "In CPU mode, set shell variable INTIMG=1 before invoking to output intermediary files."
text "\n"
section "About"
text "\n"
text "Author: Kaushik Sundarajayaraman Venkat\n"
text "E-mail: speak2kaushik@gmail.com, kaushik.sv@student.oulu.fi\n"