1 | initial version |
There is cv::projectPoints. Just give it the objectPoints you passed to calibrate camera, the intrinsic calibration and the rvec, tvec that calibrateCamera returned and it will give you the projected points. Just compute their distance to the imagePoints you passed to calibrateCamera.
2 | No.2 Revision |
There is cv::projectPoints. cv::projectPoints which does exactly that. Just give it the objectPoints you passed to calibrate camera, the intrinsic calibration and the rvec, tvec that calibrateCamera returned and it will give you the projected points. Just compute their distance to the imagePoints you passed to calibrateCamera.