Hugin should write projection info to output

Bug #696636 reported by Bruno Postle
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Wishlist
Unassigned

Bug Description

When Hugin creates an output image it discards all the photometric and geometric information it knows about this image. Hugin ought to write metadata to the image that would allow Hugin to use the image as input at some time in the future.

Important information is:

 1. Horizontal field of view.
 2. Projection and any relevant projection parameters.
 3. Cropping information, since otherwise the hfov isn't usable.
 4. EV.
 5. EMoR parameters since these are effectively transferred from the first photo in the project to the output.

We could create fake sensor and focal length info, but this would only be credible for rectilinear output. So probably the only way to do this would be to write to the EXIF notes section much like qtpfsgui/luminance, e.g. this is typical qtpfsgui output (this is the actual format):

 Qtpfsgui 1.9.3 tonemapping parameters:
 Operator: Mantiuk
 Parameters:
 Contrast Mapping factor: 0.1
 Saturation Factor: 2
 Detail Factor: 1
 ------
 PreGamma: 0.636

We already require exiftool, this info can be added to the existing exiftool command in the .pto.mk stitching Makefile

Tags: exif
Yuv (yuv)
tags: added: exif
tmodes (tmodes)
Changed in hugin:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Bruno Postle (brunopostle) wrote :

I tried to do this myself, but I find the new Makefile system to be even harder to comprehend than the old one :-(

The exiftool command modification is quite simple, we should add both a 'Software' and 'User Comment' EXIF tag, this sort of command works and can be added to the existing (though I don't think the exact format of the data is very important):

 exiftool -UserComment='Projection: 2, HFoV: 360, EV: 15.5, etc...' -Software='Hugin 2010.5.0.2f3941e43176' output.jpg

We can optionally add new lines for pretty formatting (similar to qtpfsgui) using the -E parameter and HTML character codes:

 exiftool -E -UserComment='Projection: Equirectangular (2)
HFoV: 360
' output.jpg

Revision history for this message
redneb (redneb) wrote :

What about the vertical field of view? Is it always possible to calculate it when the HFoV and the projection are already known (for all types of projection)? But even if it is possible to do that, it will still be useful to have that information included just in case the user wants to see this information when using an ordinary image viewer (as opposed to a specialized panorama viewer).

tmodes (tmodes)
Changed in hugin:
status: Triaged → Fix Committed
Yuv (yuv)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.