DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/calibration/stereo/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020 NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_stereo_calibration_sample Stereo Calibration Sample
4 @tableofcontents
5 
6 @note SW Release Applicability: This sample is available in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
7 
8 @section dwx_stereo_calibration_description Description
9 
10 The Stereo Calibration sample demonstrates how to estimate the relative extrinsics of the right camera with respect to a left camera in a typical stereo setup with the
11 NVIDIA<sup>&reg;</sup> DriveWorks Calibration Engine.
12 
13 @section dwx_stereo_calibration_running Running the Sample
14 
15 The Stereo Calibration sample, `sample_calibration_stereo`, accepts the following optional parameters. If none are specified, the relative right camera extrinsics are estimated on a default dataset.
16 
17  ./sample_calibration_stereo --path=[path/to/data/folder]
18  --rig=[path/to/rig/configuration/file]
19  --camera-sensor-left=[integer or string]
20  --camera-sensor-right=[integer or string]
21  --matches-max-count=[integer]
22 where
23 
24  --path=[path/to/data]
25  The base path to the recorded data.
26  Default value: path/to/data/data/samples/stereo/
27 
28  --rig=[path/to/rig/configuration/file]
29  Path to the rig configuration file.
30  Default value: path/to/data/samples/stereo/stereo_offset.json
31 
32  --camera-sensor-left=[integer or string]
33  The index or the name of the left camera in the rig configuration file
34  Default value: left
35 
36  --camera-sensor-right=[integer or string]
37  The index or the name of the right camera in the rig configuration file
38  Default value: right
39 
40  --matches-max-count=[integer]
41  Maximum number of matches. A higher number can increase the calibration accuracy.
42  Default value: 8000
43 
44  --profiling=[0|1]
45  When set to 1, enables sample profiling.
46  Otherwise, profiling is disabled.
47  Default value: 1
48 
49 @section dwx_stereo_calibration_output Output
50 
51 The sample does the following:
52 - Creates a window.
53 - The window has two tiles. In the top tile the left video is shown, in the bottom tile the right video is shown.
54 - Displays a red point in the top tile (left image). The position of this point can be changed by left clicking on the top image. The point can be removed by right clicking.
55 - Displays nominal calibration indicators (blue) and, after convergence, a
56  corrected calibration indicator (green) in the bottom tile. The indicators show the nominal/estimated epipolar line, respectively. The marked endpoint of each epipolar line represents the point at infinity.
57  The epipolar line should pass through the point corresponding to the red point marked in the left camera frame.
58 
59 After convergence, the sample runs the sample data in a loop, during which calibration is further refined.
60 
61 ![Stereo Calibration](sample_calibration_stereo.png)
62 
63 @section dwx_stereo_calibration_more Additional information
64 
65 For more information on Stereo calibration, see @ref calibration_usecase_stereo.