Agisoft Metashape

Agisoft Metashape => General => Topic started by: toxicmag on November 19, 2018, 06:00:23 PM

Title: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: toxicmag on November 19, 2018, 06:00:23 PM
Dear Photoscanners and Pre-Metashapers  :D

after the alignment there's very precise information available about each cameras position and orientation (used GCPs as well).

Is there a way to export these value back into the photos EXIF for later use?

Thanks a lot in advance


Alex
Title: Re: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: Alexey Pasumansky on November 19, 2018, 06:55:16 PM
Hello Alex,

In the Undistort Photos dialog (File Menu -> Export section) there's a possibility of GPS data updating by the estimated values for the camera locations.
Title: Re: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: toxicmag on November 19, 2018, 07:47:39 PM
Thanks a lot, Alexey...

Sounds great!
I will try if it will also export the orientation besides to the camera position.

:D

Greetings

Alex
Title: Re: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: toxicmag on November 20, 2018, 11:28:40 AM
Hello Alex,

In the Undistort Photos dialog (File Menu -> Export section) there's a possibility of GPS data updating by the estimated values for the camera locations.

It's going into the right direction but until now only ALT was written in the EXIF (which was blank in GPS section before).
Also strange is, that est ALT is far lower than the viewable GCP (got from terrestrial survey measurement).

I played with checkboxes in the undistort photos panel but no change.

Title: Re: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: Alexey Pasumansky on November 20, 2018, 12:24:41 PM
Hello Alex,

What is the referencing coordinate system that you are using for the chunk?

EXIF GPS tags support only WGS84 Lat/Long format, so if the current coordinate system has transformation parameters to WGS84, the coordinates should be converted according to the datum transformation parameters.
Title: Re: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: toxicmag on November 22, 2018, 11:18:23 AM
Dear Alexey,

i converted to WGS84 (EPSG: 4326) and did the process (undistort...) again for writing the GPS params into the EXIF.

I am using Win10 and in the file details it just shows the height param (which is correctly taken from Photoscan). No LAT or LON or even Roll, Pitch, Yaw (which i need for the client to reposition each camera).

When watching the files in XnView it shows completely weird params in the "GPS section" of their EXIF menue.



Thanks a lot

Alex
Title: Re: After Alignment => export camera XYZ,Roll, Pitch, Yaw back to photos EXIF part
Post by: Alexey Pasumansky on November 22, 2018, 12:18:42 PM
Hello Alex,

Thanks for additional information, we'll try to follow these steps and see what's wrong with the feature.

Upd: Problem will be fixed in the next version update.