Changing projection for already generated Panorama

411 views
Skip to first unread message

Nicolas Pelletier

unread,
Jul 16, 2009, 3:54:13 PM7/16/09
to hugi...@googlegroups.com
Hi,

Can I use hugin to transform a panorama from one projection to another?

Kind of, use hugin to generate a 360*180 cylindrical panorama. Do a few touch-ups in gimp. Now use hugin to take the corrected 360*180 and generate, for example, a stereographic projection?

Same question, but for QTVR (not sure of the name, but I mean the 6 square images). Can the be produced by Hugin? imported into hugin?

Thanks again.

nick

Bart van Andel

unread,
Jul 16, 2009, 5:23:40 PM7/16/09
to hugin and other free panoramic software
A 360x180 cylindrical panorama is impossible (well, theoretically it
is almost possible, but you'd need unlimited hight). You can however
use an equirectangular projection, stitch, do some touch-up with GIMP,
import the altered image in Hugin again (use equirectangular lens
type) and reproject to whatever projection you like.

Getting the cube faces for a QTVR is also possible, but not
automatically within Hugin. You can set the hfov and vfov to 90
degrees to produce one of the faces, and then use the numerical
transform (in the preview window) to create the other faces by
rotating 90 degrees at a time in the right directions. I'm sure you
can figure out which :)

Good luck!

--
Bart

Bruno Postle

unread,
Jul 16, 2009, 5:45:44 PM7/16/09
to Hugin ptx
On Thu 16-Jul-2009 at 15:54 -0400, Nicolas Pelletier wrote:

>Can I use hugin to transform a panorama from one projection to another?
>
>Kind of, use hugin to generate a 360*180 cylindrical panorama. Do a few
>touch-ups in gimp. Now use hugin to take the corrected 360*180 and generate,
>for example, a stereographic projection?

Yes, this is how you should be working if you wan't to create
several different versions of the same panorama. Hugin doesn't
accept lots of input formats, so you are limited to rectilinear,
fisheye and equirectangular for these intermediate images.

>Same question, but for QTVR (not sure of the name, but I mean the 6 square
>images). Can the be produced by Hugin? imported into hugin?

Yes, load them as six rectilinear photos with 90° field of view.

--
Bruno

Tom Sharpless

unread,
Jul 17, 2009, 11:06:47 PM7/17/09
to hugin and other free panoramic software
Hi

PanoTools is good for interconverting panoramic formats, and I do use
Hugin to transform equirectangular panos to other projections, too.
But I don't think it is quite fair to claim that Hugin is good for the
cubic case. In the first place it would be extremely tiresome and
error prone to generate the cube faces with Hugin. Stitching them
together again is fairly straightforward, but far from automatic. Any
sane person would prefer Pano2VR for this work.

I'm not sure, but I have a feeling that the latest version of PTGui
can both stitch to a cubic image set and accept the same as input.

As far as I know there are no widely used tools for extracting other
projections directly from cubic QTVR files. Panini can make
stereographic and Pannini projections from a QTVR, but they are of
modest resolution and don't cover the whole sphere. There are several
little programs that extract the cube faces as separate jpegs, then
you would have to use other tools to reformat. Not at all convenient.

Regards, Tom

Bruno Postle

unread,
Jul 18, 2009, 7:05:06 AM7/18/09
to Hugin ptx
On Fri 17-Jul-2009 at 20:06 -0700, Tom Sharpless wrote:
>
>As far as I know there are no widely used tools for extracting other
>projections directly from cubic QTVR files.

freepv has a nice tool called qtvr2img that extracts six cubefaces
from a QTVR. There is a command-line wrapper in Panotools::Script
called qtvr2erect that uses qtvr2img and nona to create a suitably
sized equirectangular in one go.

Unfortunately freepv is broken with the current mozilla xulrunner,
and freepv is already forked twice (in Panini and now videolan), so
freepv itself doesn't look to have much future.

--
Bruno

Yuval Levy

unread,
Jul 18, 2009, 9:42:01 PM7/18/09
to hugi...@googlegroups.com

AFAIK FreePV's purpose was to play QTVR and other panoramic content in
the browser. In that sense, the fork into VideoLAN is the best that
could have happened to it. Long live VideoLAN, now let's hope mplayer
and the other QuickTime replacements in the free world pick up that code.

For the extraction of projections directly from the cubic QTVR files,
wouldn't it be simple to fork the FreePV parser and make a single
purpose qtvr2img that does not have so many dependencies?

Yuv

Reply all
Reply to author
Forward
0 new messages