Skip to content

Python scripts to triangulate ground control points (GCPs) in COLMAP and check their 3D position against a ground truth with an Helmert transformation.

Notifications You must be signed in to change notification settings

lcmrl/COLMAP_GroundControlPoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COLMAP_GroundControlPoints

Python scripts to triangulate ground control points (GCPs) in COLMAP and check their 3D position agiainst a ground truth with an Helmert transformation.

Create a conda environment named colmap_tri

In Windows open Anaconda prompt as administrator

>conda create --name colmap_tri
>conda activate colmap_tri
>pip install opencv-contrib-python
>conda install matplotlib

Usage

For inputs and options:

>conda activate colmap_tri
>python main.py --help

Run for example:

python main.py -i ".\COLMAP_GroundControlPoints\sample_test\imgs" -e ".jpg" -p ".\COLMAP_GroundControlPoints\sample_test\target_projections" -s ".\COLMAP_GroundControlPoints\sample_test\colmap_sparse" -g ".\COLMAP_GroundControlPoints\sample_test\Ground_Truth.txt" -c "./path/to/parent/folder/colmap_exe" -a "./AlignCC_for_windows" -r 0.249 -d " "

Notes

*All images in ./sample_test/imgs must be registered in the sparse model *This repository contains some scripts to extend "COLMAP 3.6 and 3.7" (https://colmap.github.io/) functionalities. If you find these scripts useful, please consider citing the paper for which these scripts were developed:

@Article{isprs-archives-XLVI-2-W1-2022-73-2022,
AUTHOR = {Bellavia, F. and Morelli, L. and Menna, F. and Remondino, F.},
TITLE = {IMAGE ORIENTATION WITH A HYBRID PIPELINE ROBUST TO ROTATIONS AND WIDE-BASELINES},
JOURNAL = {The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences},
VOLUME = {XLVI-2/W1-2022},
YEAR = {2022},
PAGES = {73--80},
URL = {https://www.int-arch-photogramm-remote-sens-spatial-inf-sci.net/XLVI-2-W1-2022/73/2022/},
DOI = {10.5194/isprs-archives-XLVI-2-W1-2022-73-2022}
}

About

Python scripts to triangulate ground control points (GCPs) in COLMAP and check their 3D position against a ground truth with an Helmert transformation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published