Cv2InitCameraMatrix2D Method (IEnumerableMat, IEnumerableMat, Size, Double) OpenCvSharp Class Library
initializes camera matrix from a few 3D points and the corresponding projections.

Namespace:  OpenCvSharp.CPlusPlus
Assembly:  OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

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

Parameters

objectPoints
Type: System.Collections.GenericIEnumerableMat
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
Type: System.Collections.GenericIEnumerableMat
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
Type: OpenCvSharp.CPlusPlusSize
Image size in pixels used to initialize the principal point.
aspectRatio (Optional)
Type: SystemDouble
If it is zero or negative, both f_x and f_y are estimated independently. Otherwise, f_x = f_y * aspectRatio .

Return Value

Type: Mat

[Missing <returns> documentation for "M:OpenCvSharp.CPlusPlus.Cv2.InitCameraMatrix2D(System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Mat},System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Mat},OpenCvSharp.CPlusPlus.Size,System.Double)"]

See Also

Reference