[OpenDroneMap-users] ODM_Orthophoto and Georeferencing

Tomasz Nycz tomasz.nycz at gis-support.pl
Tue Feb 17 02:22:10 PST 2015


Hi to all,

Probably I will be a first to post question to this list. ;) OpenDroneMap
is an great portion of code.
Right now I'm learing how to use it most productive.

But...

I have problem with georeferencing of orthophoto. It seems, that on mesh
model there are correct coordinates (for example, in CloudCompare distance
measuring puts correct distances for
/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model_geo.obj).
But generated orthophoto has incorrect coords. Logs in attachment.

With regards,

-- 
Tomasz Nycz

---------------------------------
GIS Support Sp. z o.o.
Dobrzańskiego 3, Lublin 20-262
NIP: 9462641761, REGON: 061483531
tel. /81/451-14-90, KRS: 0000440891

VI Wydział Gospodarczy KRS
Sąd Rejonowy Lublin Wschód z siedzibą w Świdniku
Kapitał zakładowy 5 000 zł
www.gis-support.pl info at gis-support.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/opendronemap-users/attachments/20150217/0459d3df/attachment.html>
-------------- next part --------------
/home/mechanik/dev/OpenDroneMap/bin/odm_orthophoto_log.txt

Arguments given
-inputFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model_geo.obj
-logFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200/odm_orthophoto/odm_orthophoto_log.txt
-outputFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_orthphoto.png
-resolution
20.0

Reading textured mesh from: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model_geo.obj
Log file path was set to: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200/odm_orthophoto/odm_orthophoto_log.txt
Writing output to: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_orthphoto.png
Resolution count was set to: 20pixels/meter

Reading mesh file...
.. mesh file read.

Number of faces in the model 199892
Set boundary to contain entire model.
Local boundary points:
Point 1: -279.415 -241.415
Point 2: -279.415 507.146
Point 3: 495.703 507.146
Point 4: 495.703 -241.415

Ortho photo bounds x : -279.415 -> 495.703
Ortho photo bounds y : -241.415 -> 507.146
Ortho photo area : 580223m2
Ortho photo resolution, width x height : 15503x14972
Translating and scaling mesh...
.. mesh translated and scaled.

Rendering the ortho photo...
Material 0 rendered.
Warning: Sliver polygon found at face index 6553
Warning: Sliver polygon found at face index 6563
Warning: Sliver polygon found at face index 9070
Warning: Sliver polygon found at face index 9103
Warning: Sliver polygon found at face index 11507
Warning: Sliver polygon found at face index 11508
Material 1 rendered.
Material 2 rendered.
Material 3 rendered.
Warning: Sliver polygon found at face index 56004
Warning: Sliver polygon found at face index 56006
Warning: Sliver polygon found at face index 57225
Warning: Sliver polygon found at face index 57231
Warning: Sliver polygon found at face index 59274
Warning: Sliver polygon found at face index 59277
Warning: Sliver polygon found at face index 71689
Warning: Sliver polygon found at face index 71690
Warning: Sliver polygon found at face index 71693
Warning: Sliver polygon found at face index 71694
Warning: Sliver polygon found at face index 71983
Warning: Sliver polygon found at face index 71987
Material 4 rendered.
Warning: Sliver polygon found at face index 79258
Warning: Sliver polygon found at face index 79262
Material 5 rendered.
Warning: Sliver polygon found at face index 105854
Warning: Sliver polygon found at face index 105856
Material 6 rendered.
Warning: Sliver polygon found at face index 134910
Warning: Sliver polygon found at face index 134912
Warning: Sliver polygon found at face index 137948
Warning: Sliver polygon found at face index 137957
Warning: Sliver polygon found at face index 139631
Warning: Sliver polygon found at face index 145548
Warning: Sliver polygon found at face index 145553
Warning: Sliver polygon found at face index 145555
Warning: Sliver polygon found at face index 145556
Warning: Sliver polygon found at face index 166969
Warning: Sliver polygon found at face index 166977
Warning: Sliver polygon found at face index 175515
Warning: Sliver polygon found at face index 175516
Warning: Sliver polygon found at face index 175518
Warning: Sliver polygon found at face index 175519
Warning: Sliver polygon found at face index 179178
Warning: Sliver polygon found at face index 180355
Warning: Sliver polygon found at face index 181985
Warning: Sliver polygon found at face index 183370
Warning: Sliver polygon found at face index 183373
Warning: Sliver polygon found at face index 183392
Warning: Sliver polygon found at face index 183393
Material 7 rendered.
Material 8 rendered.
...ortho photo rendered

Writing ortho photo to /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_orthphoto.png
Orthophoto generation done.
-------------- next part --------------
/home/mechanik/dev/OpenDroneMap/bin/odm_georef_log.txt
Arguments given
-bundleFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200/pmvs/bundle.rd.out
-gcpFile
/home/mechanik/dev/SfM/gcp_list.txt
-imagesPath
/home/mechanik/dev/SfM/
-imagesListPath
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200/pmvs/list.rd.txt
-bundleResizedTo
1200
-inputFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model.obj
-outputFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model_geo.obj
-logFile
/home/mechanik/dev/SfM/reconstruction-with-image-size-1200/odm_georeferencing/odm_georeferencing_log.txt

Reading cameras from: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200/pmvs/bundle.rd.out
Reading GCPs from: /home/mechanik/dev/SfM/gcp_list.txt
Images location is set to: /home/mechanik/dev/SfM/
Reading image list from: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200/pmvs/list.rd.txt
Bundle resize value is set to: 1200
Reading textured mesh from: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model.obj
Writing output to: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model_geo.obj
Log file path was set to: /home/mechanik/dev/SfM/reconstruction-with-image-size-1200/odm_georeferencing/odm_georeferencing_log.txt

Reading following GCPs from file:
x_: 634676 y_: 485344 z_: 112 pixelX_: 1184 pixelY_: 1115 image: img_3024.jpg
x_: 634604 y_: 485234 z_: 111 pixelX_: 3186 pixelY_: 329 image: img_3029.jpg
x_: 634544 y_: 485363 z_: 110 pixelX_: 1520 pixelY_: 2312 image: img_3015.jpg

The calculated easting offset for the georeferenced system: 634608
The calculated northing offset for the georeferenced system: 485313

Recalculated GCPs with offset:
x_: 68 y_: 31 z_: 112
x_: -4 y_: -79 z_: 111
x_: -64 y_: 50 z_: 110

Reading mesh file /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model.obj

Successfully loaded /home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model.obj.
Position in model for gcp 1: x=-43.7747 y=-7.41564 z=-129.86
Position in model for gcp 2: x=-43.0173 y=-6.8713 z=-129.209
Position in model for gcp 3: x=-43.1382 y=-8.11953 z=-129.154

Choosing optimal gcp triplet...
Mean georeference error 0.0494529
Optimal gcp triplet chosen: 0, 1, 2

Final transform:
[ -66.67135697,	53.40886686,	-73.57134348,	-12008.42368058 ]
[ -45.68071925,	-98.56135374,	-30.15378780,	-6615.32199181 ]
[ -78.60357199,	11.97797858,	79.92700408,	7139.29490132 ]
[ 0.00000000,	0.00000000,	0.00000000,	1.00000000 ]

Applying transform to mesh...
.. mesh transformed.

Successfully saved model.

Saving georeference system file to '/home/mechanik/dev/SfM/reconstruction-with-image-size-1200-results/odm_texturing/odm_textured_model_geo_georef_system.txt'...
... georeference system saved.


More information about the OpenDroneMap-users mailing list