Method FromCameraMatrix
FromCameraMatrix(Mat, Mat, Size?)
Returns an Intrinsics structure representing the camera intrinsic parameters extracted from a camera matrix, lens distortion and optional image size.
public static Intrinsics FromCameraMatrix(Mat cameraMatrix, Mat distortionCoefficients, Size? imageSize)
Parameters
cameraMatrix
MatA 2x3 matrix specifying the focal lengths and principal point offset.
distortionCoefficients
MatA 1x5 or 5x1 vector specifying the coefficients for the lens distortion model.
imageSize
Size?The image size of the camera, in pixels.
Returns
- Intrinsics
An Intrinsics object representing the extracted camera intrinsic parameters.
FromCameraMatrix(Mat, Mat, Size?, out Intrinsics)
Initializes an Intrinsics structure representing the camera intrinsic parameters extracted from a camera matrix, lens distortion and optional image size.
public static void FromCameraMatrix(Mat cameraMatrix, Mat distortionCoefficients, Size? imageSize, out Intrinsics intrinsics)
Parameters
cameraMatrix
MatA 2x3 matrix specifying the focal lengths and principal point offset.
distortionCoefficients
MatA 1x5 or 5x1 vector specifying the coefficients for the lens distortion model.
imageSize
Size?The image size of the camera, in pixels.
intrinsics
IntrinsicsWhen this method returns, contains an Intrinsics object representing the extracted camera intrinsic parameters.