Table of Contents

Method FromCameraMatrix

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

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 Mat

A 2x3 matrix specifying the focal lengths and principal point offset.

distortionCoefficients Mat

A 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 Mat

A 2x3 matrix specifying the focal lengths and principal point offset.

distortionCoefficients Mat

A 1x5 or 5x1 vector specifying the coefficients for the lens distortion model.

imageSize Size?

The image size of the camera, in pixels.

intrinsics Intrinsics

When this method returns, contains an Intrinsics object representing the extracted camera intrinsic parameters.