DriveWorks SDK Reference

| 0.6.67 Release

/builds/driveav/dw/sdk/samples/stereo/disparity/README.md
Go to the documentation of this file.
1 # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_stereo_disparity_sample Stereo Disparity Sample
4 
5 The Stereo Disparity sample demonstrates the stereo pipeline.
6 
7 ![](sample_experimental_stereo_disparity.png)
8 
9 The above diagram shows:
10 
11 - Top: Anaglyph of left and right image
12 - Bottom: Stereo images
13 
14 The sample reads frames from two rectified stereo videos. It then runs the
15 frames through the stereo pipeline and displays a confidence map and final stereo
16 output.
17 
18 The stereo output is color coded for clarity and some pixels are masked if they
19 are occluded or invalid. It is possible to use keyboard input to change
20 parameters:
21 
22  0-6: changes the level of refinement (0 no refinement)
23  Q,W: changes the gain to the color code for visualizaion
24  O : toggles occlusions
25  K : infills occlusions (only if on)
26  +,-: changes invalidy threshold (appears as white pixels)
27  I : toggle horizontal infill of invalidity pixels
28 
29 #### Usage
30 
31  ./sample_stereo_disparity
32 
33 The input arguments are
34 
35  --video0=pathTo/videoLeftRect.h264
36  --video1=pathTo/videoRightRect.h264
37  --level=0, 1, 2, 3, pyramid level to display the disparity, depends on the number of levels (default 4)
38  --single_side=true/false
39 
40 If `--single_side` is false, the sample computes left and right stereo images
41 and performs complete stereo pipeline. Otherwise, it computes only the left
42 image and approximates occlusions by thresholding the confidence map.
43