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
objectPointsIEnumerable<Mat>vector of vectors of calibration pattern points in the calibration pattern coordinate space.
imagePointsIEnumerable<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.
imageSizeSizeSize of the image used only to initialize the intrinsic camera matrix.
kInputOutputArrayOutput 3x3 floating-point camera matrix
dInputOutputArrayOutput vector of distortion coefficients (k_1, k_2, k_3, k_4).
rvecsIEnumerable<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).
tvecsIEnumerable<Mat>Output vector of translation vectors estimated for each pattern view.
flagsFishEyeCalibrationFlagsDifferent flags that may be zero or a combination of flag values
criteriaTermCriteria?Termination criteria for the iterative optimization algorithm.