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

Add copy constructor support for solver bindings #62

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

B1ueber2y
Copy link
Member

@B1ueber2y B1ueber2y commented Dec 18, 2024

Since we bring some of the Ceres bindings back to colmap from colmap/colmap#2985, it s better to enable the copying behavior in Python, to be able to use features that in pyceres but not in pycolmap (for example, the callbacks in SolverOptions). For example, the following code will work after this update:

import pycolmap
import pyceres
options_in_pycolmap = pycolmap.pyceres.SolverOptions()
options = pyceres.SolverOptions(options)

Also, the shared_ptr bindings support are added.

B1ueber2y added a commit to colmap/colmap that referenced this pull request Dec 18, 2024
@sarlinpe sarlinpe merged commit ebe3464 into cvg:main Dec 19, 2024
6 checks passed
@B1ueber2y B1ueber2y deleted the features/solvers branch December 19, 2024 11:12
HernandoR pushed a commit to HernandoR/colmap that referenced this pull request Dec 30, 2024
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.

2 participants