MYNT EYE D SDK  1.7.2
http://www.myntai.com/mynteye/depth
通过设置参数获取不同类型的数据

get_all_with_options 样例可以通过添加参数来设定当前设备的各类控制值。

get_all_with_options -h 参数说明:

1 Open device with different options.
2 
3 Options:
4  -h, --help show this help message and exit
5  -m, --imu Enable imu datas
6 
7  Open Params:
8  The open params
9 
10  -i INDEX, --index=INDEX
11  Device index
12  -f RATE, --rate=RATE
13  Framerate, range [0,60], [30](STREAM_2560x720),
14  default: 10
15  --dev-mode=MODE Device mode, default 2 (DEVICE_ALL)
16  0: DEVICE_COLOR, left y right - depth n
17  1: DEVICE_DEPTH, left n right n depth y
18  2: DEVICE_ALL, left y right - depth y
19  Note: y: available, n: unavailable, -: depends on
20  stream mode
21  --cm=MODE Color mode, default 0 (COLOR_RAW)
22  0: COLOR_RAW, color raw
23  1: COLOR_RECTIFIED, color rectified
24  --dm=MODE Depth mode, default 2 (DEPTH_COLORFUL)
25  0: DEPTH_RAW
26  1: DEPTH_GRAY
27  2: DEPTH_COLORFUL
28  --sm=MODE Stream mode of color & depth,
29  default 2 (STREAM_1280x720)
30  0: STREAM_640x480, 480p, vga, left
31  1: STREAM_1280x480, 480p, vga, left+right
32  2: STREAM_1280x720, 720p, hd, left
33  3: STREAM_2560x720, 720p, hd, left+right
34  --csf=MODE Stream format of color,
35  default 1 (STREAM_YUYV)
36  0: STREAM_MJPG
37  1: STREAM_YUYV
38  --dsf=MODE Stream format of depth,
39  default 1 (STREAM_YUYV)
40  1: STREAM_YUYV
41  --ae Enable auto-exposure
42  --awb Enable auto-white balance
43  --ir=VALUE IR intensity, range [0,6], default 0
44  --ir-depth Enable ir-depth-only
45 
46  Feature Toggles:
47  The feature toggles
48 
49  --proc=MODE Enable process mode, e.g. imu assembly, temp_drift
50  0: PROC_NONE
51  1: PROC_IMU_ASSEMBLY
52  2: PROC_IMU_TEMP_DRIFT
53  3: PROC_IMU_ALL
54  --img-info Enable image info, and sync with image

例如 ./samples/_output/bin/get_all_with_options -f 60 --dev-mode=0 --sm=2 显示的是1280x720的60帧左目未矫正图像。

完整代码样例 get_all_with_options