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
objectPointsIEnumerable<Mat>Vector of vectors of the calibration pattern points.
imagePoints1IEnumerable<Mat>Vector of vectors of the projections of the calibration pattern points, observed by the first camera.
imagePoints2IEnumerable<Mat>Vector of vectors of the projections of the calibration pattern points, observed by the second camera.
k1InputOutputArrayInput/output first camera matrix
d1InputOutputArrayInput/output vector of distortion coefficients (k_1, k_2, k_3, k_4) of 4 elements.
k2InputOutputArrayInput/output second camera matrix. The parameter is similar to K1 .
d2InputOutputArrayInput/output lens distortion coefficients for the second camera. The parameter is similar to D1.
imageSizeSizeSize of the image used only to initialize intrinsic camera matrix.
rOutputArrayOutput rotation matrix between the 1st and the 2nd camera coordinate systems.
tOutputArrayOutput translation vector between the coordinate systems of the cameras.
flagsFishEyeCalibrationFlagsDifferent flags that may be zero or a combination of the FishEyeCalibrationFlags values
criteriaTermCriteria?Termination criteria for the iterative optimization algorithm.