Closed nnop closed 3 months ago
We use shared_ptr
for objects that are manipulated as such by COLMAP - mostly large ones. Given that we often share them across C++ and Python, unique_ptr
is often not appropriate. Btw, @B1ueber2y should add bindings for the IncrementalMapper
very soon. You're free to contribute though, but please send the PR to the COLMAP repo. Thank you!
Thanks @sarlinpe
I have managed to bind DatabaseCache
and some IncrementalMapper
methods for my use case. I found it's quite straight forward. Your binding codes are great for reference.
I noticed some colmap classes were bound with
shared_ptr
holder type while others are not.e.g.
If I want to bind a colmap class (e.g.
IncrementalMapper
), should I useshared_ptr
instead of the defaultunique_ptr
holder?