Table of Contents

Method InitCameraMatrix2D

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

InitCameraMatrix2D(IEnumerable<Mat>, IEnumerable<Mat>, Size, double)

initializes camera matrix from a few 3D points and the corresponding projections.

public static Mat InitCameraMatrix2D(IEnumerable<Mat> objectPoints, IEnumerable<Mat> imagePoints, Size imageSize, double aspectRatio = 1)

Parameters

objectPoints IEnumerable<Mat>

Vector of vectors (vector<vector<Point3d>>) of the calibration pattern points in the calibration pattern coordinate space. In the old interface all the per-view vectors are concatenated.

imagePoints IEnumerable<Mat>

Vector of vectors (vector<vector<Point2d>>) of the projections of the calibration pattern points. In the old interface all the per-view vectors are concatenated.

imageSize Size

Image size in pixels used to initialize the principal point.

aspectRatio double

If it is zero or negative, both f_x and f_y are estimated independently. Otherwise, f_x = f_y * aspectRatio .

Returns

Mat

InitCameraMatrix2D(IEnumerable<IEnumerable<Point3f>>, IEnumerable<IEnumerable<Point2f>>, Size, double)

initializes camera matrix from a few 3D points and the corresponding projections.

public static Mat InitCameraMatrix2D(IEnumerable<IEnumerable<Point3f>> objectPoints, IEnumerable<IEnumerable<Point2f>> imagePoints, Size imageSize, double aspectRatio = 1)

Parameters

objectPoints IEnumerable<IEnumerable<Point3f>>

Vector of vectors of the calibration pattern points in the calibration pattern coordinate space. In the old interface all the per-view vectors are concatenated.

imagePoints IEnumerable<IEnumerable<Point2f>>

Vector of vectors of the projections of the calibration pattern points. In the old interface all the per-view vectors are concatenated.

imageSize Size

Image size in pixels used to initialize the principal point.

aspectRatio double

If it is zero or negative, both f_x and f_y are estimated independently. Otherwise, f_x = f_y * aspectRatio .

Returns

Mat