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
cameraMatrixInputArrayInput camera matrix that can be estimated by calibrateCamera() or stereoCalibrate() .
imageSizeSizeInput image size in pixels.
apertureWidthdoublePhysical width of the sensor.
apertureHeightdoublePhysical height of the sensor.
fovxdoubleOutput field of view in degrees along the horizontal sensor axis.
fovydoubleOutput field of view in degrees along the vertical sensor axis.
focalLengthdoubleFocal length of the lens in mm.
principalPointPoint2dPrincipal point in pixels.
aspectRatiodoublefy / 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
cameraMatrixdouble[,]Input camera matrix that can be estimated by calibrateCamera() or stereoCalibrate() .
imageSizeSizeInput image size in pixels.
apertureWidthdoublePhysical width of the sensor.
apertureHeightdoublePhysical height of the sensor.
fovxdoubleOutput field of view in degrees along the horizontal sensor axis.
fovydoubleOutput field of view in degrees along the vertical sensor axis.
focalLengthdoubleFocal length of the lens in mm.
principalPointPoint2dPrincipal point in pixels.
aspectRatiodoublefy / fx