Equirectangular image created in Hugin

1,122 views
Skip to first unread message

krome

unread,
Mar 20, 2012, 8:29:48 PM3/20/12
to hugin and other free panoramic software
Hi,
I have a 360 degree pano image width=2880 x height=709

I need to convert it to an Equirectangular image to use with
PanoSalado

I have created the image now 2880 x 1440 in Hugin, but the extra
height (1440-709) is black
How can I change the extra height to white?

Thanks

kfj

unread,
Mar 21, 2012, 4:24:48 AM3/21/12
to hugin and other free panoramic software


On 21 Mrz., 01:29, krome <davek1...@gmail.com> wrote:

>
> I have created the image now 2880 x 1440 in Hugin, but the extra
> height (1440-709) is black
> How can I change the extra height to white?

I don't think the black colour comes from hugin. Hugin leaves
everything which isn't covered by an image transparent. How the
transparent region is shown depends on what you view the image with.

Just to make sure you did it right: you should have set the panorama
size to 360X180, projection spherical, and your input as spherical,
hfov 360 degrees (and if it's not vertically centered around the
horizon you need vertical shift to compensate). You set no crop, then
stitch. The output will have the strips above and below the input
images transparent, not black (I actually tried it :)

Kay

JohnG

unread,
Mar 21, 2012, 9:07:50 AM3/21/12
to hugin and other free panoramic software
As of version 2011.4, on the Preview tab of the Fast Preview window,
there is a "Background" colour picker ( to the right of the "Gray
Picker"). By default this is black.

Dave Kennedy

unread,
Mar 21, 2012, 12:58:46 PM3/21/12
to hugi...@googlegroups.com
Hi,
I tried both suggestions without success - the extra space is still black.
I have attached my image.
I am following this article: http://www.frank-durr.de/panosalado2.html

Converting Cylindrical Panoramas to Equirectangular Panoramas
Assume you have a cylindric image. Load this image into your favorite panorama software. I use Hugin. Hugin wil ask you for the type of lense you used when you load the image. Here you say “cylindric”, and horizontal field of view 360 degrees (obviously only if your cylindric panorama actually covers 360 degrees horizontally). As output parameters you set the type of projection to equirectangular, and vertical field of view to 180 degrees, and save the image (Hugin also tells you the actual vertical field of view for the vfov parameter). This equirectangular image can be handled as mentioned in the previous section.

--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to hugin-ptx+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

front.org.jpg

Carl von Einem

unread,
Mar 21, 2012, 1:46:12 PM3/21/12
to hugi...@googlegroups.com
Hi Dave,

Frank might have used The Gimp or Photoshop (or some other image editor)
to fill that extra space with white colour. Btw other than maybe for
reasons of personal preference I see no technical reason to choose
white. Usually the extra space will be hidden from the user by setting
the viewer properly, so it really doesn't make a difference. I'd just
stay with black as the background colour.

Hugin outputs the image (your equi) together with an Alpha channel. Use
that as a mask, just invert the selection and then either fill with
white or just invert the content.

Does that work for you?

Carl

Dave Kennedy schrieb am 21.03.12 17:58:


> Hi,
> I tried both suggestions without success - the extra space is still black.
> I have attached my image.
> I am following this article: http://www.frank-durr.de/panosalado2.html
>

> *Converting Cylindrical Panoramas to Equirectangular Panoramas*


> Assume you have a cylindric image. Load this image into your favorite

> panorama software. I use Hugin <http://hugin.sourceforge.net/>. Hugin


> wil ask you for the type of lense you used when you load the image. Here

> you say �cylindric�, and horizontal field of view 360 degrees (obviously


> only if your cylindric panorama actually covers 360 degrees
> horizontally). As output parameters you set the type of projection to
> equirectangular, and vertical field of view to 180 degrees, and save the
> image (Hugin also tells you the actual vertical field of view for the
> vfov parameter). This equirectangular image can be handled as mentioned
> in the previous section.
>
> On Wed, Mar 21, 2012 at 6:07 AM, JohnG <vat...@yahoo.co.uk
> <mailto:vat...@yahoo.co.uk>> wrote:
>
> As of version 2011.4, on the Preview tab of the Fast Preview window,
> there is a "Background" colour picker ( to the right of the "Gray
> Picker"). By default this is black.
>
> On Mar 21, 12:29 am, krome <davek1...@gmail.com

> <mailto:davek1...@gmail.com>> wrote:
> > Hi,
> > I have a 360 degree pano image width=2880 x height=709
> >
> > I need to convert it to an Equirectangular image to use with
> > PanoSalado
> >
> > I have created the image now 2880 x 1440 in Hugin, but the extra
> > height (1440-709) is black
> > How can I change the extra height to white?
> >
> > Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "Hugin and other free panoramic software" group.
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> To post to this group, send email to hugi...@googlegroups.com

> <mailto:hugi...@googlegroups.com>


> To unsubscribe from this group, send email to
> hugin-ptx+...@googlegroups.com

> <mailto:hugin-ptx%2Bunsu...@googlegroups.com>

Carl von Einem

unread,
Mar 21, 2012, 1:58:02 PM3/21/12
to hugi...@googlegroups.com
Isn't this for preview reasons only?

Carl

JohnG schrieb am 21.03.12 14:07:

Bruno Postle

unread,
Mar 21, 2012, 2:40:16 PM3/21/12
to hugin and other free panoramic software
On Tue 20-Mar-2012 at 17:29 -0700, krome wrote:
>
> I have created the image now 2880 x 1440 in Hugin, but the extra
> height (1440-709) is black
> How can I change the extra height to white?

Hugin leaves empty areas as transparent, but if you are stitching
directly to JPEG then empty areas become black - Since JPEG doesn't
support alpha channels.

If you want a different coloured background then you need to stitch
your panorama in TIFF format, open the result in an image editor and
flatten it there.

--
Bruno

Dave Kennedy

unread,
Mar 21, 2012, 5:27:30 PM3/21/12
to hugi...@googlegroups.com
Hi Carl,
Thanks for the suggestion.
I am moving on to my next challenge which involves PanoSalado2.

I have compiled PanoSalado2 and URLRequest loaded the PanoSalado swf into an image to display a pano in a slideshow.
The pano loads but the PanoSalado controls are disabled and the dark area show as a semi-circle at the bottom of the image.

If the swf is loaded in an html file the pano plays properly.

Do you know of any support/forum for PanoSalado2?
Thanks,
Dave

On Wed, Mar 21, 2012 at 10:46 AM, Carl von Einem <ca...@einem.net> wrote:
Hi Dave,

Frank might have used The Gimp or Photoshop (or some other image editor) to fill that extra space with white colour. Btw other than maybe for reasons of personal preference I see no technical reason to choose white. Usually the extra space will be hidden from the user by setting the viewer properly, so it really doesn't make a difference. I'd just stay with black as the background colour.

Hugin outputs the image (your equi) together with an Alpha channel. Use that as a mask, just invert the selection and then either fill with white or just invert the content.

Does that work for you?

Carl

Dave Kennedy schrieb am 21.03.12 17:58:
Hi,
I tried both suggestions without success - the extra space is still black.
I have attached my image.
I am following this article: http://www.frank-durr.de/panosalado2.html

*Converting Cylindrical Panoramas to Equirectangular Panoramas*

Assume you have a cylindric image. Load this image into your favorite
panorama software. I use Hugin <http://hugin.sourceforge.net/>. Hugin

wil ask you for the type of lense you used when you load the image. Here
you say “cylindric”, and horizontal field of view 360 degrees (obviously

   To unsubscribe from this group, send email to

   For more options, visit this group at
   http://groups.google.com/group/hugin-ptx


--
You received this message because you are subscribed to the Google
Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/hugin-ptx

--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugi...@googlegroups.com
To unsubscribe from this group, send email to hugin-ptx+unsubscribe@googlegroups.com
pano-test.JPG

Robert Campbell

unread,
Mar 22, 2012, 2:18:24 AM3/22/12
to hugi...@googlegroups.com

You can also use convert from ImageMagick like I do:

convert input.tif -background white -layers flatten output.tif
or
convert input.tif -background white -layers merge output.tif

The flatten doesn't always work the way I want it to, so I've settled
on merge, but try both and compare.
Of course, you'll have to install ImageMagick, but it's available for
nearly every OS.

Bob Campbell

Carl von Einem

unread,
Mar 22, 2012, 3:00:08 AM3/22/12
to hugi...@googlegroups.com
PanoSalado (and PanoSalado2) was mentioned on the PanoTools NG list
(<http://tech.groups.yahoo.com/group/PanoToolsNG/>) several times, e.g.
here:
<http://www.panotools.org/mailarchive/msg/91207#msg91207>

Carl

Dave Kennedy schrieb am 21.03.12 22:27:

Reply all
Reply to author
Forward
0 new messages