Ask Your Question
0

How to calculate Calibration Errors for a single Camera?

asked Jun 9 '16

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered Jun 10 '16

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);
Preview: (hide)

Question Tools

1 follower

Stats

Asked: Jun 9 '16

Seen: 717 times

Last updated: Jun 10 '16