Processing Google photospheres in Hugin

673 views
Skip to first unread message

Bruno Postle

unread,
Mar 3, 2014, 6:52:04 AM3/3/14
to hugi...@googlegroups.com
Android 4.2+ devices have a photosphere shooting mode as well as an immersive viewer. The viewer is ok, but since I haven't yet managed to create a full spherical 'photosphere' without horrible stitching errors the spherical shooting mode hasn't been much use.

The photosphere mode does however do acceptable stitching of partial panoramas. These panoramas are in cropped equirectangular format, so they need some Hugin processing to create nice static images.

So a new gpano2pto script (in the Panotools::Script Mercurial repository on Sourceforge) reads the GPano XMP tags in the photosphere panorama, figures out the correct field of view and vertical shift, and writes a Hugin .pto project that you can open for remapping, levelling etc...

Here's an example:
After (remapped to Pannini projection) https://secure.flickr.com/photos/brunopostle/12891690425/

Hope somebody else finds this useful.

--
Bruno

T. Modes

unread,
Mar 8, 2014, 3:37:05 AM3/8/14
to hugi...@googlegroups.com
Hi Bruno,


Am Montag, 3. März 2014 12:52:04 UTC+1 schrieb Bruno Postle:
The photosphere mode does however do acceptable stitching of partial panoramas. These panoramas are in cropped equirectangular format, so they need some Hugin processing to create nice static images.

So a new gpano2pto script (in the Panotools::Script Mercurial repository on Sourceforge) reads the GPano XMP tags in the photosphere panorama, figures out the correct field of view and vertical shift, and writes a Hugin .pto project that you can open for remapping, levelling etc...

Hugin can now also read these tags. At least with your 2 examples it works fine.

Thomas

Bruno Postle

unread,
Mar 8, 2014, 5:51:36 AM3/8/14
to hugi...@googlegroups.com

On 8 Mar 2014 08:37, "T. Modes" <Thomas...@gmx.de> wrote:
>
>> So a new gpano2pto script (in the Panotools::Script Mercurial repository on Sourceforge) reads the GPano XMP tags in the photosphere panorama, figures out the correct field of view and vertical shift, and writes a Hugin .pto project that you can open for remapping, levelling etc...
>>
> Hugin can now also read these tags. At least with your 2 examples it works fine.

That's great, does this mean we can now 'roundtrip' Hugin panoramas? i.e hugin already writes gpano tags, so can I now load a partial equirectangular panorama created by Hugin into a new Hugin project, and get a correct hfov and vertical offset?

--
Bruno

T. Modes

unread,
Mar 8, 2014, 8:20:27 AM3/8/14
to hugi...@googlegroups.com
Hi Bruno,


Am Samstag, 8. März 2014 11:51:36 UTC+1 schrieb Bruno Postle:
That's great, does this mean we can now 'roundtrip' Hugin panoramas? i.e hugin already writes gpano tags, so can I now load a partial equirectangular panorama created by Hugin into a new Hugin project, and get a correct hfov and vertical offset?

this should work now (I needed to fix some more issues). But it works only for equirectangular panos.

Thomas
Reply all
Reply to author
Forward
0 new messages