Cv2InitCameraMatrix2D Method (IEnumerableIEnumerablePoint3d, IEnumerableIEnumerablePoint2d, Size, Double)
|
initializes camera matrix from a few 3D points and the corresponding projections.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static Mat InitCameraMatrix2D(
IEnumerable<IEnumerable<Point3d>> objectPoints,
IEnumerable<IEnumerable<Point2d>> imagePoints,
Size imageSize,
double aspectRatio = 1
)
Public Shared Function InitCameraMatrix2D (
objectPoints As IEnumerable(Of IEnumerable(Of Point3d)),
imagePoints As IEnumerable(Of IEnumerable(Of Point2d)),
imageSize As Size,
Optional aspectRatio As Double = 1
) As Mat
public:
static Mat^ InitCameraMatrix2D(
IEnumerable<IEnumerable<Point3d>^>^ objectPoints,
IEnumerable<IEnumerable<Point2d>^>^ imagePoints,
Size imageSize,
double aspectRatio = 1
)
static member InitCameraMatrix2D :
objectPoints : IEnumerable<IEnumerable<Point3d>> *
imagePoints : IEnumerable<IEnumerable<Point2d>> *
imageSize : Size *
?aspectRatio : float
(* Defaults:
let _aspectRatio = defaultArg aspectRatio 1
*)
-> Mat
OpenCvSharp.Cv2.InitCameraMatrix2D = function(objectPoints, imagePoints, imageSize, aspectRatio);
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: OpenCvSharpSize
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
See Also