Ask Your Question
0

How to calculate Calibration Errors for a single Camera?

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

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
2

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

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);
                    ///*|CALIB_FIX_K3*/|CALIB_FIX_K4|CALIB_FIX_K5);
    printf("RMS error reported by calibrateCamera: %g\n", rms);
edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 672 times

Last updated: Jun 10 '16