colmap / pycolmap

Python bindings for COLMAP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is the model_aligner feature from COLMAP exposed in pycolmap?

LauroLdas opened this issue · comments

Hey guys,

This is more a question than a properly issue, but here it goes:

I'm interested in using the model_aligner (https://colmap.github.io/faq.html) feature from COLMAP, but I'm just found a way to use it using the command line interface from COLMAP. Is this exposed in the library? Can we get it exposed in the Python binds for pycolmap?

Thank you.

We don't yet have bindings for the model_aligner but we will in the future. For now you can use pycolmap.align_reconstrution_to_locations on HEAD (or pycolmap.Reconstruction.align_robust in v0.4.0) to emulate the alignment_type = ecef | enu behavior by first converting the GPS locations to ECEF/ENU.

Thanks for your prompt response.
Is there any docs I can look for the input parameters of the pycolmap.align_reconstrution_to_locations function?

Check the code:

"align_reconstrution_to_locations",
[](const Reconstruction& src,
const std::vector<std::string>& image_names,
const std::vector<Eigen::Vector3d>& locations,
const int min_common_images,
const RANSACOptions& ransac_options) {

hey @sarlinpe thank you for your precious help. I got it working perfectly with align_robust.

Hi there, @LauroLdas please could you provide an example on how did you use "align_robust" or "align_reconstrution_to_locations"? An example of how did you set the line of code would help me a lot!
Many thanks in advance!