Ask Your Question

How to calculate Calibration Errors for a single Camera?

asked 2016-06-09 03:34:03 -0500

The function

 double calibrateCamera(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags=0, TermCriteria criteria=TermCriteria( TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON) )

gives all Camera parameters, intrinsic and extrinsic but what is the procedure to obtain Calibration Errors, i.e,. for both intrinsic and extrinsic parameters.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-10 08:29:45 -0500

This function itself returns the RMS Error of the Calibration. Please check the API documentation.

Sample usage located in \sources\samples\cpp\calibration.cpp

double rms = calibrateCamera(objectPoints, imagePoints, imageSize, cameraMatrix,
                    distCoeffs, rvecs, tvecs, flags|CALIB_FIX_K4|CALIB_FIX_K5);
    printf("RMS error reported by calibrateCamera: %g\n", rms);
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-06-09 03:34:03 -0500

Seen: 259 times

Last updated: Jun 10 '16