| Cv2InitCameraMatrix2D Method (IEnumerableMat, IEnumerableMat, Size, Double) |
initializes camera matrix from a few 3D points and the corresponding projections.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Mat InitCameraMatrix2D(
IEnumerable<Mat> objectPoints,
IEnumerable<Mat> imagePoints,
Size imageSize,
double aspectRatio = 1
)
Public Shared Function InitCameraMatrix2D (
objectPoints As IEnumerable(Of Mat),
imagePoints As IEnumerable(Of Mat),
imageSize As Size,
Optional aspectRatio As Double = 1
) As Mat
public:
static Mat^ InitCameraMatrix2D(
IEnumerable<Mat^>^ objectPoints,
IEnumerable<Mat^>^ imagePoints,
Size imageSize,
double aspectRatio = 1
)
static member InitCameraMatrix2D :
objectPoints : IEnumerable<Mat> *
imagePoints : IEnumerable<Mat> *
imageSize : Size *
?aspectRatio : float
(* Defaults:
let _aspectRatio = defaultArg aspectRatio 1
*)
-> Mat
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: 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[Missing <returns> documentation for "M:OpenCvSharp.Cv2.InitCameraMatrix2D(System.Collections.Generic.IEnumerable{OpenCvSharp.Mat},System.Collections.Generic.IEnumerable{OpenCvSharp.Mat},OpenCvSharp.Size,System.Double)"]
See Also