Table of Contents

Method StereoCalibrate

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

StereoCalibrate(IEnumerable<Mat>, IEnumerable<Mat>, IEnumerable<Mat>, InputOutputArray, InputOutputArray, InputOutputArray, InputOutputArray, Size, OutputArray, OutputArray, FishEyeCalibrationFlags, TermCriteria?)

Performs stereo calibration

public static double StereoCalibrate(IEnumerable<Mat> objectPoints, IEnumerable<Mat> imagePoints1, IEnumerable<Mat> imagePoints2, InputOutputArray k1, InputOutputArray d1, InputOutputArray k2, InputOutputArray d2, Size imageSize, OutputArray r, OutputArray t, FishEyeCalibrationFlags flags = FishEyeCalibrationFlags.FixIntrinsic, TermCriteria? criteria = null)

Parameters

objectPoints IEnumerable<Mat>

Vector of vectors of the calibration pattern points.

imagePoints1 IEnumerable<Mat>

Vector of vectors of the projections of the calibration pattern points, observed by the first camera.

imagePoints2 IEnumerable<Mat>

Vector of vectors of the projections of the calibration pattern points, observed by the second camera.

k1 InputOutputArray

Input/output first camera matrix

d1 InputOutputArray

Input/output vector of distortion coefficients (k_1, k_2, k_3, k_4) of 4 elements.

k2 InputOutputArray

Input/output second camera matrix. The parameter is similar to K1 .

d2 InputOutputArray

Input/output lens distortion coefficients for the second camera. The parameter is similar to D1.

imageSize Size

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

r OutputArray

Output rotation matrix between the 1st and the 2nd camera coordinate systems.

t OutputArray

Output translation vector between the coordinate systems of the cameras.

flags FishEyeCalibrationFlags

Different flags that may be zero or a combination of the FishEyeCalibrationFlags values

criteria TermCriteria?

Termination criteria for the iterative optimization algorithm.

Returns

double