[][src]Function opencv::calib3d::calibration_matrix_values

pub fn calibration_matrix_values(
    camera_matrix: &dyn 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<()>

Computes useful camera characteristics from the camera matrix.

Parameters

  • cameraMatrix: Input camera matrix that can be estimated by calibrateCamera or stereoCalibrate .
  • 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).