Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

computeReprojectionErrors #2

Open
WYoseanLove opened this issue Aug 10, 2022 · 2 comments
Open

computeReprojectionErrors #2

WYoseanLove opened this issue Aug 10, 2022 · 2 comments

Comments

@WYoseanLove
Copy link

Regarding the computeReprojection error:

current code is as below :

err = cv::norm(cv::Mat(imagePoints[i]), cv::Mat(imagePoints2), cv::NormTypes::NORM_L2);

is it need to be divide by the objectPoints size?

err = cv::norm(cv::Mat(imagePoints[i]), cv::Mat(imagePoints2), cv::NormTypes::NORM_L2)/ objectPoints[i].size();

@AhmedSamara
Copy link
Owner

Hi,

this code base is fairly outdated and at the time it was mostly just a compilation of various clippings from the opencv docs.
I would recommend looking there for updated code as I'm node sure what the correct way fo doing things is now.

@AhmedSamara
Copy link
Owner

https://docs.opencv.org/2.4/doc/tutorials/calib3d/camera_calibration/camera_calibration.html

This is where I got it from eventually but again may be outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants