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

How to convert the k1 and k2 of your paper into the radial distortion parameters of the opencv checkerboard calibration method #3

Open
2585157341 opened this issue Nov 19, 2020 · 1 comment

Comments

@2585157341
Copy link

The minimization is performed in the normalized parameters p1 and p2 instead of k1 and k2. But I see the k1 and k2 are different from the k1 and k2 of the opencv checkerboard calibration method. How to convert the k1 and k2 of your paper into the radial distortion parameters of the opencv checkerboard calibration method? When I multiply the k1 by the square of the focal distance, k2 multiply the square of the focal distance, the undistion is still wrong.

@hugohadfield
Copy link

hugohadfield commented Jul 15, 2024

Hey, I also wondered this.. I had a look at the maths and have built a load of python bindings and parameter conversion functions etc. over here: https://github.com/hugohadfield/LensDistortionFromLines . Hope its helpful to you! I've added a bit of info of how to use them on the README.md

Also quick note, the parameter conversion I have done is into the opencv fisheye parameters, rather than the other opencv parameters. Although I imagine it won't be hard to convert to the normal radial ones, probably a bit easier than the fisheye ones as you wouldn't have to worry about the arctan(r) messing things up..

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