how to geo-reference my model?

1,412 views
Skip to first unread message

christo...@gmail.com

unread,
Oct 28, 2017, 3:01:05 AM10/28/17
to COLMAP
Hello, 
I tried to make a georeferenced model. I do have the "exact position of my images stored in a .txt file.
DSC03240.jpg 519861.62425103 280721.61317575 69.24359963
DSC03095.jpg 519882.02517884 280721.83285926 69.35558947
DSC03194.jpg 519902.51109826 280721.91325819 69.78478120
DSC03250.jpg 519923.00464351 280721.77025080 70.02997290
DSC03308.jpg 519943.95633489 280721.14373284 69.87487511
DSC03042.jpg 519965.10411619 280720.60854994 69.67108211
DSC03384.jpg 519986.11518038 280720.21334504 69.09008598
DSC03109.jpg 520007.01608385 280720.17787899 68.32008756
DSC03401.jpg 520027.98578000 280720.08998486 68.42739074
DSC03387.jpg 520048.84810986 280719.94570045 69.07619129
DSC03298.jpg 520069.96034075 280719.44415267 68.42489747
DSC03038.jpg 520091.21892940 280719.10017014 67.96480733

As described in the manual.

when I try to start model_aligner with the following command 

model_aligner \
    --project_path $PROJECT_PATH/sparse/0 \
    --output_path $PROJECT_PATH/geo-registered-model \
    --ref_images_path /media/daten/luftbilder/monkswood/positionfotos_post/log/pos_fotos

I get the following error 
ERROR: Configuration file does not exist.

Where did I make the mistake? Is it correct to do the model_alignment after making the sparse cloud? 

thank you, christoph

Johannes Schönberger

unread,
Oct 28, 2017, 3:36:49 AM10/28/17
to col...@googlegroups.com
Remove the project path option from your command.
> --
> You received this message because you are subscribed to the Google Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/colmap/3af2bf75-b269-4d96-a2bb-9443712aecee%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

christo...@gmail.com

unread,
Nov 1, 2017, 6:37:31 AM11/1/17
to COLMAP
thank you for your answer I tried the following 
model_aligner \
>     --input_path $PROJECT_PATH/sparse/0 \
>     --output_path $PROJECT_PATH/geo-registered-model \
>     --ref_images_path /media/daten/luftbilder/jpeg/positions.txt \
>     --robust_alignment_max_error 0.10

results in the following output 
Aligning reconstruction
-----------------------
 => Using 470 reference images
 => Alignment failed

why ?

Johannes Schönberger

unread,
Nov 8, 2017, 7:50:00 AM11/8/17
to COLMAP
Probably the error threshold is too small. What kind of scene are you reconstructing?

christo...@gmail.com

unread,
Nov 8, 2017, 9:06:46 AM11/8/17
to COLMAP
It is a uav mission over dense Forrest.

Johannes Schönberger

unread,
Nov 16, 2017, 5:45:19 AM11/16/17
to COLMAP
SFM models have unknown scene scale, so you would have to estimate a good error threshold upon visual inspection. COLMAP scales the scene to the interval [-10, 10] in the largest direction.

christo...@gmail.com

unread,
Dec 20, 2017, 12:39:35 PM12/20/17
to COLMAP
hmmm.... seems to work but one question remains... The heights seems to be incredible low which I guess is related to the camera settings. Is there a possibility to read out the camera instrincts through command line?

Johannes Schönberger

unread,
Dec 20, 2017, 1:22:13 PM12/20/17
to col...@googlegroups.com
The camera intrinsics are stored in the cameras.{bin|txt}, which can be read using the provided Python/Matlab scripts. Alternatively, you can convert the binary format to text using the model_converter executable and then read out the contents using your favorite text reader program.
> --
> You received this message because you are subscribed to the Google
> Groups "COLMAP" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to colmap+un...@googlegroups.com.
> To post to this group, send email to col...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/colmap/4e1e158d-1f1f-46c5-a2d1-a305250f5353%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages