Method CalibrateCameraRO
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
CalibrateCameraRO(IEnumerable<Mat>, IEnumerable<Mat>, Size, int, InputOutputArray, InputOutputArray, out Mat[], out Mat[], OutputArray, CalibrationFlags, TermCriteria?)
Finds intrinsic and extrinsic camera parameters, additionally allowing one point of the calibration pattern object to be optimized ("releasing object" method). Useful when the calibration pattern is not perfectly rigid/planar.
public static double CalibrateCameraRO(IEnumerable<Mat> objectPoints, IEnumerable<Mat> imagePoints, Size imageSize, int iFixedPoint, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, out Mat[] rvecs, out Mat[] tvecs, OutputArray newObjPoints, CalibrationFlags flags = CalibrationFlags.None, TermCriteria? criteria = null)
Parameters
objectPointsIEnumerable<Mat>Vector of vectors of calibration pattern points, as in CalibrateCamera.
imagePointsIEnumerable<Mat>Vector of vectors of the projections of calibration pattern points.
imageSizeSizeSize of the image used only to initialize the intrinsic camera matrix.
iFixedPointintThe index of the object point to be fixed. It must be within [1, objectPoints[0].Count - 2]. It is ignored with FixK3 or if the calibration pattern is a non-planar rig.
cameraMatrixInputOutputArrayOutput 3x3 floating-point camera matrix.
distCoeffsInputOutputArrayOutput vector of distortion coefficients.
rvecsMat[]Output vector of rotation vectors estimated for each pattern view.
tvecsMat[]Output vector of translation vectors estimated for each pattern view.
newObjPointsOutputArrayThe updated output vector of calibration pattern points, where the coordinates of the fixed point (index iFixedPoint) are unchanged.
flagsCalibrationFlagsDifferent flags that may be zero or a combination of the CalibrationFlag values
criteriaTermCriteria?Termination criteria for the iterative optimization algorithm.
Returns
- double
Root mean square (RMS) re-projection error.