Skip to content
Snippets Groups Projects
Commit 58a65aad authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Use opencv 3.4 calibrate function

parent 47175e28
No related branches found
No related tags found
No related merge requests found
Pipeline #9497 failed
......@@ -563,8 +563,12 @@ static bool _runCalibration( Calibrate::Settings& s, Size& imageSize, Mat& camer
int iFixedPoint = -1;
if (release_object)
iFixedPoint = s.boardSize.width - 1;
rms = calibrateCameraRO(objectPoints, imagePoints, imageSize, iFixedPoint,
cameraMatrix, distCoeffs, rvecs, tvecs, newObjPoints,
//rms = calibrateCameraRO(objectPoints, imagePoints, imageSize, iFixedPoint,
// cameraMatrix, distCoeffs, rvecs, tvecs, newObjPoints,
// s.flag | CALIB_USE_LU);
rms = calibrateCamera(objectPoints, imagePoints, imageSize,
cameraMatrix, distCoeffs, rvecs, tvecs,
s.flag | CALIB_USE_LU);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment