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

Added Pybind Wrapper for COLMAP's Homography Decomposition Function #24

Merged
merged 5 commits into from
Dec 2, 2021

Conversation

adisingh50
Copy link
Contributor

Added a pybind wrapper over COLMAP's homography decomposition function: PoseFromHomographyMatrix() (source code here). Named the python module: homography_decomposition().

@johnwlambert and I are experimenting with it in our gtsfm project to accurately decompose relative rotation and unit translations from a pair we suspect to be a homography.


namespace py = pybind11;

py::dict homography_decomposition_estimation (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great @adisingh50. Maybe you could add a docstring here too explaining each of the inputs, and maybe explain that the points should be normalized beforehand?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure thing

@mihaidusmanu mihaidusmanu merged commit bd528d7 into colmap:master Dec 2, 2021
sarlinpe pushed a commit that referenced this pull request Jan 5, 2022
Added Pybind Wrapper for COLMAP's Homography Decomposition Function
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

Successfully merging this pull request may close these issues.

None yet

3 participants