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<IEnumerable<Point3d>> objectPoints, IEnumerable<IEnumerable<Point2d>> imagePoints, Size imageSize, double aspectRatio = 1 )
Parameters
- objectPoints
- Type: System.Collections.GenericIEnumerableIEnumerablePoint3d
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
- Type: System.Collections.GenericIEnumerableIEnumerablePoint2d
Vector of vectors 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{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point3d}},System.Collections.Generic.IEnumerable{System.Collections.Generic.IEnumerable{OpenCvSharp.CPlusPlus.Point2d}},OpenCvSharp.CPlusPlus.Size,System.Double)"]
See Also