Method StereoCalibrate
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
StereoCalibrate(IReadOnlyList<Mat>, IReadOnlyList<Mat>, IReadOnlyList<Mat>, InputOutputArray, InputOutputArray, InputOutputArray, InputOutputArray, Size, OutputArray, OutputArray, OutputArray, OutputArray, CalibrationFlags, TermCriteria?)
finds intrinsic and extrinsic parameters of a stereo camera
public static double StereoCalibrate(IReadOnlyList<Mat> objectPoints, IReadOnlyList<Mat> imagePoints1, IReadOnlyList<Mat> imagePoints2, InputOutputArray cameraMatrix1, InputOutputArray distCoeffs1, InputOutputArray cameraMatrix2, InputOutputArray distCoeffs2, Size imageSize, OutputArray R, OutputArray T, OutputArray E, OutputArray F, CalibrationFlags flags = CalibrationFlags.FixIntrinsic, TermCriteria? criteria = null)
Parameters
objectPointsIReadOnlyList<Mat>Vector of vectors of the calibration pattern points.
imagePoints1IReadOnlyList<Mat>Vector of vectors of the projections of the calibration pattern points, observed by the first camera.
imagePoints2IReadOnlyList<Mat>Vector of vectors of the projections of the calibration pattern points, observed by the second camera.
cameraMatrix1InputOutputArrayInput/output first camera matrix
distCoeffs1InputOutputArrayInput/output vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6]]) of 4, 5, or 8 elements. The output vector length depends on the flags.
cameraMatrix2InputOutputArrayInput/output second camera matrix. The parameter is similar to cameraMatrix1 .
distCoeffs2InputOutputArrayInput/output lens distortion coefficients for the second camera. The parameter is similar to distCoeffs1 .
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.
EOutputArrayOutput essential matrix.
FOutputArrayOutput fundamental matrix.
flagsCalibrationFlagsDifferent flags that may be zero or a combination of the CalibrationFlag values
criteriaTermCriteria?Termination criteria for the iterative optimization algorithm.
Returns
StereoCalibrate(IEnumerable<IEnumerable<Point3f>>, IEnumerable<IEnumerable<Point2f>>, IEnumerable<IEnumerable<Point2f>>, double[,], double[], double[,], double[], Size, OutputArray, OutputArray, OutputArray, OutputArray, CalibrationFlags, TermCriteria?)
finds intrinsic and extrinsic parameters of a stereo camera
public static double StereoCalibrate(IEnumerable<IEnumerable<Point3f>> objectPoints, IEnumerable<IEnumerable<Point2f>> imagePoints1, IEnumerable<IEnumerable<Point2f>> imagePoints2, double[,] cameraMatrix1, double[] distCoeffs1, double[,] cameraMatrix2, double[] distCoeffs2, Size imageSize, OutputArray R, OutputArray T, OutputArray E, OutputArray F, CalibrationFlags flags = CalibrationFlags.FixIntrinsic, TermCriteria? criteria = null)
Parameters
objectPointsIEnumerable<IEnumerable<Point3f>>Vector of vectors of the calibration pattern points.
imagePoints1IEnumerable<IEnumerable<Point2f>>Vector of vectors of the projections of the calibration pattern points, observed by the first camera.
imagePoints2IEnumerable<IEnumerable<Point2f>>Vector of vectors of the projections of the calibration pattern points, observed by the second camera.
cameraMatrix1double[,]Input/output first camera matrix
distCoeffs1double[]Input/output vector of distortion coefficients (k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6]]) of 4, 5, or 8 elements. The output vector length depends on the flags.
cameraMatrix2double[,]Input/output second camera matrix. The parameter is similar to cameraMatrix1 .
distCoeffs2double[]Input/output lens distortion coefficients for the second camera. The parameter is similar to distCoeffs1 .
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.
EOutputArrayOutput essential matrix.
FOutputArrayOutput fundamental matrix.
flagsCalibrationFlagsDifferent flags that may be zero or a combination of the CalibrationFlag values
criteriaTermCriteria?Termination criteria for the iterative optimization algorithm.