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

Support for Colmap camera model FULL_OPENCV #40

Open
jackokaiser opened this issue Apr 21, 2022 · 2 comments
Open

Support for Colmap camera model FULL_OPENCV #40

jackokaiser opened this issue Apr 21, 2022 · 2 comments

Comments

@jackokaiser
Copy link

Dear pixloc authors and developers,

Many thanks for providing such a high-quality package! Well done.

For our application, we are using a FULL_OPENCV camera model, which isn't supported by pixloc at the moment.

The FULL_OPENCV model is registered in utils/colmap.py, but it's missing from pixlib/geometry/wrappers.py, as well as from the actual undistortion in pixlib/geometry/utils.py and its jacobian. The FULL_OPENCV calibration model is an extension to the OPENCV model, with an higher-order polynomial: k3, k4, k5 and k6 follow p1 and p2.

It seems that adding support for higher degree polynomials in the undistortion code would be simple, but I'm not sure about the boundary condition - what would this become?

@sarlinpe
Copy link
Member

Hi, thank you for your interest! I just found out about this recent WACV2022 paper that derives the maximum radius for more complex camera models. The solution is not trivial but they provide a Python implementation and needs to be computed only once per camera, thus can be cached (e.g. adding a Camera.maximum_radius method with @cached_property).

@jackokaiser
Copy link
Author

nice, I'll check it out, thanks!

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