Table of Contents

Method Calibrate

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Calibrate(IEnumerable<Mat>, IEnumerable<Mat>, Size, InputOutputArray, InputOutputArray, out IEnumerable<Mat>, out IEnumerable<Mat>, FishEyeCalibrationFlags, TermCriteria?)

Performs camera calibaration

public static double Calibrate(IEnumerable<Mat> objectPoints, IEnumerable<Mat> imagePoints, Size imageSize, InputOutputArray k, InputOutputArray d, out IEnumerable<Mat> rvecs, out IEnumerable<Mat> tvecs, FishEyeCalibrationFlags flags = FishEyeCalibrationFlags.None, TermCriteria? criteria = null)

Parameters

objectPoints IEnumerable<Mat>

vector of vectors of calibration pattern points in the calibration pattern coordinate space.

imagePoints IEnumerable<Mat>

vector of vectors of the projections of calibration pattern points. imagePoints.size() and objectPoints.size() and imagePoints[i].size() must be equal to objectPoints[i].size() for each i.

imageSize Size

Size of the image used only to initialize the intrinsic camera matrix.

k InputOutputArray

Output 3x3 floating-point camera matrix

d InputOutputArray

Output vector of distortion coefficients (k_1, k_2, k_3, k_4).

rvecs IEnumerable<Mat>

Output vector of rotation vectors (see Rodrigues ) estimated for each pattern view. That is, each k-th rotation vector together with the corresponding k-th translation vector(see the next output parameter description) brings the calibration pattern from the model coordinate space(in which object points are specified) to the world coordinate space, that is, a real position of the calibration pattern in the k-th pattern view(k= 0.. * M * -1).

tvecs IEnumerable<Mat>

Output vector of translation vectors estimated for each pattern view.

flags FishEyeCalibrationFlags

Different flags that may be zero or a combination of flag values

criteria TermCriteria?

Termination criteria for the iterative optimization algorithm.

Returns

double