opencv::calib3d

Function calibration_matrix_values

source
pub fn calibration_matrix_values(
    camera_matrix: &impl ToInputArray,
    image_size: Size,
    aperture_width: f64,
    aperture_height: f64,
    fovx: &mut f64,
    fovy: &mut f64,
    focal_length: &mut f64,
    principal_point: &mut Point2d,
    aspect_ratio: &mut f64,
) -> Result<()>
Expand description

Computes useful camera characteristics from the camera intrinsic matrix.

§Parameters

  • cameraMatrix: Input camera intrinsic matrix that can be estimated by calibrate_camera or stereo_calibrate .
  • imageSize: Input image size in pixels.
  • apertureWidth: Physical width in mm of the sensor.
  • apertureHeight: Physical height in mm of the sensor.
  • fovx: Output field of view in degrees along the horizontal sensor axis.
  • fovy: Output field of view in degrees along the vertical sensor axis.
  • focalLength: Focal length of the lens in mm.
  • principalPoint: Principal point in mm.
  • aspectRatio: inline formula

The function computes various useful camera characteristics from the previously estimated camera matrix.

Note: Do keep in mind that the unity measure ‘mm’ stands for whatever unit of measure one chooses for the chessboard pitch (it can thus be any value).