| Cv2CalibrationMatrixValues Method (InputArray, Size, Double, Double, Double, Double, Double, Point2d, Double) |
computes several useful camera characteristics from the camera matrix, camera frame resolution and the physical sensor size.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax 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
)
Public Shared Sub CalibrationMatrixValues (
cameraMatrix As InputArray,
imageSize As Size,
apertureWidth As Double,
apertureHeight As Double,
<OutAttribute> ByRef fovx As Double,
<OutAttribute> ByRef fovy As Double,
<OutAttribute> ByRef focalLength As Double,
<OutAttribute> ByRef principalPoint As Point2d,
<OutAttribute> ByRef aspectRatio As Double
)
public:
static void CalibrationMatrixValues(
InputArray^ cameraMatrix,
Size imageSize,
double apertureWidth,
double apertureHeight,
[OutAttribute] double% fovx,
[OutAttribute] double% fovy,
[OutAttribute] double% focalLength,
[OutAttribute] Point2d% principalPoint,
[OutAttribute] double% aspectRatio
)
static member CalibrationMatrixValues :
cameraMatrix : InputArray *
imageSize : Size *
apertureWidth : float *
apertureHeight : float *
fovx : float byref *
fovy : float byref *
focalLength : float byref *
principalPoint : Point2d byref *
aspectRatio : float byref -> unit
Parameters
- cameraMatrix
- Type: OpenCvSharpInputArray
Input camera matrix that can be estimated by calibrateCamera() or stereoCalibrate() . - imageSize
- Type: OpenCvSharpSize
Input image size in pixels. - apertureWidth
- Type: SystemDouble
Physical width of the sensor. - apertureHeight
- Type: SystemDouble
Physical height of the sensor. - fovx
- Type: SystemDouble
Output field of view in degrees along the horizontal sensor axis. - fovy
- Type: SystemDouble
Output field of view in degrees along the vertical sensor axis. - focalLength
- Type: SystemDouble
Focal length of the lens in mm. - principalPoint
- Type: OpenCvSharpPoint2d
Principal point in pixels. - aspectRatio
- Type: SystemDouble
fy / fx
See Also