Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@B1ueber2y
Copy link
Contributor

@B1ueber2y B1ueber2y commented Sep 15, 2025

This improves safety at the triangulation and will throw exceptions for all legacy databases that do not go through rig_configurator while corresponding to a rig configured reconstruction.

Note that the current hloc triangulation breaks for reconstruction with non-trivial frames due to legacy database interfaces not updated here: https://github.com/cvg/Hierarchical-Localization/blob/master/hloc/triangulation.py#L29. Will send in a fix later in hloc today.

@B1ueber2y
Copy link
Contributor Author

also cc: @Phil26AT

@B1ueber2y B1ueber2y changed the title Throw exception when the rig configuration of the database and existing reconstruction is inconsistent. Throw exception when the rig configurations of the database and existing reconstruction are inconsistent. Sep 15, 2025
@sarlinpe
Copy link
Member

sarlinpe commented Sep 15, 2025

Note that the current hloc triangulation breaks

Thank you for flagging this! Alternatively, would it make sense for COLMAP to provide a function to populate the cameras and images of an empty database given a reconstruction?

@B1ueber2y
Copy link
Contributor Author

Note that the current hloc triangulation breaks

Thank you for flagging this! Alternatively, would it make sense for COLMAP to provide a function to populate the cameras and images of an empty database given a reconstruction?

After migrating to pycolmap.Database, the implementation of creating an empty database from a reconstruction is extremely straightforward: https://github.com/cvg/Hierarchical-Localization/blob/features/pycolmap_database/hloc/triangulation.py#L28-L44, so I think we do not need this function from COLMAP anymore?

@B1ueber2y B1ueber2y merged commit cf25ac9 into colmap:main Sep 16, 2025
13 checks passed
@B1ueber2y B1ueber2y deleted the features/triangulation_safety branch September 16, 2025 18:45
B1ueber2y added a commit that referenced this pull request Sep 16, 2025
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.

3 participants