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

Control over COLMAP import and reconstruction options #210

Merged
merged 4 commits into from
Aug 18, 2022

Conversation

sarlinpe
Copy link
Member

@sarlinpe sarlinpe commented Jul 27, 2022

CLI usage:

python -m hloc.reconstruction [...] \
    --image_options camera_model='"RADIAL"' \
    --mapper_options ba_global_use_pba=True ba_refine_principal_point=True

API usage:

model = reconstruction.main(
    sfm_dir, images, sfm_pairs, features, matches, image_list=references,
    image_options={'camera_model': 'RADIAL'},
    mapper_options={'ba_global_use_pba': True, 'ba_refine_principal_point': True},
)

Requires colmap/pycolmap#74

TODO: bump the version of pycolmap

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

1 participant