Table of Contents

Method CalibrationMatrixValues

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CalibrationMatrixValues(InputArray, Size, double, double, out double, out double, out double, out Point2d, out double)

computes several useful camera characteristics from the camera matrix, camera frame resolution and the physical sensor size.

public static void CalibrationMatrixValues(InputArray cameraMatrix, Size imageSize, double apertureWidth, double apertureHeight, out double fovx, out double fovy, out double focalLength, out Point2d principalPoint, out double aspectRatio)

Parameters

cameraMatrix InputArray

Input camera matrix that can be estimated by calibrateCamera() or stereoCalibrate() .

imageSize Size

Input image size in pixels.

apertureWidth double

Physical width of the sensor.

apertureHeight double

Physical height of the sensor.

fovx double

Output field of view in degrees along the horizontal sensor axis.

fovy double

Output field of view in degrees along the vertical sensor axis.

focalLength double

Focal length of the lens in mm.

principalPoint Point2d

Principal point in pixels.

aspectRatio double

fy / fx

CalibrationMatrixValues(double[,], Size, double, double, out double, out double, out double, out Point2d, out double)

computes several useful camera characteristics from the camera matrix, camera frame resolution and the physical sensor size.

public static void CalibrationMatrixValues(double[,] cameraMatrix, Size imageSize, double apertureWidth, double apertureHeight, out double fovx, out double fovy, out double focalLength, out Point2d principalPoint, out double aspectRatio)

Parameters

cameraMatrix double[,]

Input camera matrix that can be estimated by calibrateCamera() or stereoCalibrate() .

imageSize Size

Input image size in pixels.

apertureWidth double

Physical width of the sensor.

apertureHeight double

Physical height of the sensor.

fovx double

Output field of view in degrees along the horizontal sensor axis.

fovy double

Output field of view in degrees along the vertical sensor axis.

focalLength double

Focal length of the lens in mm.

principalPoint Point2d

Principal point in pixels.

aspectRatio double

fy / fx