OpenCvSharp.Cv2.CalibrationMatrixValues C# (CSharp) Method

CalibrationMatrixValues() public static method

computes several useful camera characteristics from the camera matrix, camera frame resolution and the physical sensor size.
public static CalibrationMatrixValues ( InputArray cameraMatrix, Size imageSize, double apertureWidth, double apertureHeight, double &fovx, double &fovy, double &focalLength, Point2d &principalPoint, double &aspectRatio ) : void
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
return void
        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)
        {
            if (cameraMatrix == null)
                throw new ArgumentNullException(nameof(cameraMatrix));
            cameraMatrix.ThrowIfDisposed();

            NativeMethods.calib3d_calibrationMatrixValues_InputArray(cameraMatrix.CvPtr,
                imageSize, apertureWidth, apertureHeight, out fovx, out fovy, out focalLength,
                out principalPoint, out aspectRatio);
        }
        /// <summary>

Same methods

Cv2::CalibrationMatrixValues ( double cameraMatrix, Size imageSize, double apertureWidth, double apertureHeight, double &fovx, double &fovy, double &focalLength, Point2d &principalPoint, double &aspectRatio ) : void
Cv2