Ask Your Question
0

Reprojection error with opencv

asked 2016-02-10 06:26:03 -0600

MariaR gravatar image

updated 2019-12-09 08:08:24 -0600

Akhil Patel gravatar image

Hi, I'm looking for a method to obtain all the reprojection errors in a calibration. I know that the functions calibrateCamera and StereoCalibrate returns the final reprojection error but I need the maximum of all reprojection errors used for the final reprojection error calculation.

I have found the code for calculate all the reprojection errors but I'm interested in a more automatic method.

Is there any function to get all the reprojection errors calculated by the function calibrateCamera in openCV?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-10 08:59:23 -0600

updated 2016-02-10 09:00:36 -0600

There is 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.

edit flag offensive delete link more

Comments

Thanks for your answer.

I'm doing that.

But previously I have done a calibration with calibrateCamera and openCV calculates at this moment all the reprojection errors, so my question is if there is a method to get back all the reprojection errors calculated by OpenCv instead of to recalculate them with cv::projectPoints.

MariaR gravatar imageMariaR ( 2016-02-10 09:27:23 -0600 )edit

cv::calibrateCamera does not return the values so where do you expect to get them?

FooBar gravatar imageFooBar ( 2016-02-10 10:55:40 -0600 )edit

Hi, it's for this reason that I posted the question because I don't know if a supplementary function to get them exists! I suppose by your answer that the solution is to use the function cv::projectPoints... Thanks again for your answer!

MariaR gravatar imageMariaR ( 2016-02-15 02:53:15 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-02-10 06:26:03 -0600

Seen: 10,602 times

Last updated: Feb 10 '16