1 # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_stereo_disparity_sample Stereo Disparity Sample
5 The Stereo Disparity sample demonstrates the stereo pipeline.
7 
9 The above diagram shows:
11 - Top: Anaglyph of left and right image
12 - Bottom: Stereo images
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
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
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
31 ./sample_stereo_disparity
33 The input arguments are
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
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.