1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_calibration_camera_mask Camera Mask Calibration Tool
6 @section dwx_calibration_camera_mask_description Description
8 The NVIDIA<sup>®</sup> DriveWorks Camera Mask tool serializes camera masks in an output rig file, given an input rig file and a corresponding car model. \n The masks are used to discriminate the pixels that belong to the vehicle.
10 @note SW Release Applicability: This tool is available in both <b>NVIDIA DriveWorks</b> and <b>NVIDIA DRIVE Software</b> releases.
12 @section dwx_calibration_camera_mask_prerequisites Prerequisites
14 This tool is available on the x86 Host System.
16 This tool creates output files that are placed into the current working directory by default. Please ensure the following for your convenience:
17 - Write permissions are enabled for the current working directory.
18 - Include the tools folder in the binary search path of the system.
19 - Execute from your home directory.
21 @section dwx_calibration_camera_mask_usage Running the Tool
23 Run this tool by executing:
25 ./calibration-camera-mask --rig=[rig file]
26 --model=[OBJ car model]
27 --output_rig=[output rig]
28 [--extra_leeway=[value from 0-100]]
31 @subsection dwx_calibration_camera_mask_parameters Parameters
33 --rig=[path to input rig file]
34 Description: The path for the input rig file containing the ftheta camera definitions to be rendered.
35 Only ftheta cameras are supported at this time.
36 Example: --rig=.././data/tools/camera_mask/ford-fusion-rig.json
38 --model=[path to OBJ file]
39 Description: The path for the OBJ file of the vehicle's 3D model.
40 Example: --model=.././data/tools/camera_mask/ford-fusion.obj
42 --output_rig=[path to output rig file]
43 Description: The path for the modified output rig file with an encoded camera mask.
44 Example: --output_rig=output_rig.json
46 --extra_leeway=[value from 0-100]
47 Description: Extra margin for the camera mask in percent value.
48 This parameter is optional.
50 Example: --extra_leeway=15
53 Description: If this argument is specified, it enables a point-like reprojection of the CAD model,
54 instead of creating a silhouette mask. It can be used for debugging purposes.
55 This parameter is optional.
57 @section dwx_calibration_camera_mask_example Example
59 ./calibration-camera-mask --rig=.././data/tools/camera_mask/ford-fusion-rig.json
60 --model=.././data/tools/camera_mask/ford-fusion.obj
61 --output_rig=output_rig.json
63 @section dwx_calibration_camera_mask_output Output
65 A visualization of the mask with a corresponding image is demonstrated below.
67 ![Camera Mask Calibration Tool Output] (tool_camera_mask.png)