Forum

Upright orientation

Started by maddin, January 25, 2017, 12:19:11 PM

Previous topic - Next topic

maddin

When taking pictures with a DSLR, the EXIF data encodes which of the image edges points downwards (gravity vector), right?

It would be nice if PhotoScan would use that information to determine the initial orientation of the point cloud, such that vertical 3D features are parallel to the "up" axis in PS.

Alexey Pasumansky

Hello maddin,

Which EXIF tag you are speaking about? Does it work with arbitrary camera orientation?
Best regards,
Alexey Pasumansky,
Agisoft LLC

maddin

#2
Quote from: Alexey Pasumansky on January 25, 2017, 12:22:17 PM
Which EXIF tag you are speaking about? Does it work with arbitrary camera orientation?

I don't know the specific EXIF tag (I guess it's the Orientation tag), but there is one that tells you whether the image was shot in Portrait or Landscape mode (and if in Portrait, which turn). It essentially tells you which edge of the image is "down".

Edit: Here is an illustration of what the tag does.

Couldn't that be used to set up some sort of initial orientation, such that "image up" is the same as "PhotoScan Up"?

BTW, which axis is "up" in PhotoScan?

Alexey Pasumansky

Hello maddin,

Orientation tag is read by PhotoScan and is used for the visualization purposes (the image is rotated in the Photo view accordingly).

For unreferenced complex projects the orientation of the coordinate axis in the Model view would be arbitrary can cannot be predicted.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Grischa Hahn

I think the computation of a good estimation of the worlds up-vector from cameras + orientation tags is not so complicated. ReCap Photo does this. Capturing Reality does this. Pix4D does this. And: it is very helpfully.

+1 from my side.

Lazar Obradovic

#5
Coming back to this thread:

Quote from: Alexey Pasumansky on January 25, 2017, 12:22:17 PM
Which EXIF tag you are speaking about? Does it work with arbitrary camera orientation?

I know Metashape is using GPSPitch / GPSRoll tags, but I'm not sure if they alone can be used, or only when other GPS tags are present as well. I currently don't have a camera that exports those tags, so can't tell.

In addition, Gopro exports gravity vector data (https://exiftool.org/TagNames/GoPro.html) even in JPEGs, and so does Apple for iPhone photos (https://exiftool.org/TagNames/Apple.html).

All of these can be used to tell where is "down" and possibly assist camera pose estimation algorithm (by at least suggesting 2 of 3 angles).