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
cameraMatrixMatA 2x3 matrix specifying the focal lengths and principal point offset.
distortionCoefficientsMatA 1x5 or 5x1 vector specifying the coefficients for the lens distortion model.
imageSizeSize?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
cameraMatrixMatA 2x3 matrix specifying the focal lengths and principal point offset.
distortionCoefficientsMatA 1x5 or 5x1 vector specifying the coefficients for the lens distortion model.
imageSizeSize?The image size of the camera, in pixels.
intrinsicsIntrinsicsWhen this method returns, contains an Intrinsics object representing the extracted camera intrinsic parameters.