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
objectPointsIEnumerable<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.
imagePointsIEnumerable<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.
imageSizeSizeImage size in pixels used to initialize the principal point.
aspectRatiodoubleIf it is zero or negative, both f_x and f_y are estimated independently. Otherwise, f_x = f_y * aspectRatio .
Returns
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
objectPointsIEnumerable<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.
imagePointsIEnumerable<IEnumerable<Point2f>>Vector of vectors of the projections of the calibration pattern points. In the old interface all the per-view vectors are concatenated.
imageSizeSizeImage size in pixels used to initialize the principal point.
aspectRatiodoubleIf it is zero or negative, both f_x and f_y are estimated independently. Otherwise, f_x = f_y * aspectRatio .