MAVS Camera Model

A Simulator for Autonomous Ground Vehicles

MAVS Camera Model

The MAVS camera model is defined by a few simple parameters in the json file. These parameters may also be accessed through the Camera tab of the Sensor Editor in the MAVS GUI.

"Pixels": [604, 484],
"FocalPlaneDimensions": [0.003215, 0.002576],
"FocalLength": 0.0035,
"Gamma": 0.65,
"Gain": 1.0,
"Samples Per Pixel": 1

Additional optional entries discussed below include

Note that the distortion and fisheye entries cannot be used in the same sensor.

Anti Aliasing

Anti-aliasing can remove jittery features around objects and boundaries. If this optional entry is not included, no anti-aliasing will be performed. Note that all anti-aliasing options will slow down the simulation to some degree.

"Anti Aliasing":{
  "Type" : "corners",
  "Samples Per Pixel": 5
}

Distortion

Distortion parameters can be included by adding a “Distortion” field to the json file, as shown below. The distortion model is based on the model by Jean Bouget used in the MATLAB Camera Calibration Toolbox. The distortion parameters for a camera can be measured with the toolbox. Users should visit the website for more information about the definitions and conventions of these parameters.

"Distortion": {
  "FC": [657.30,657.74],
  "CC": [302.72,242.33],
  "KC": [-0.25349,0.11868,-0.00028,0.00005,0.0],
  "alpha":0.00042
}

If the Distortion entry is present, the Fisheye Projection parameter described below should not be included.

Fisheye Camera

A camera can be made into a fisheye camera by including the “Fisheye Projection” parameter in the camera file.

"Fisheye Projection": "equidistant"

The option for fisheye projection models are equidistant, equisolid, and stereographic. An explanation of these projection models can be found on Wikipedia. Note that typically the focal plane dimensions should be larger than the focal length for a fisheye camera.

If the Fisheye Projection parameter is used, the Distortion entry should be omitted.