Can Hugin convert six cube-face images into an equirectangular panorama?

Asked 3/28/2017

2 views

2 answers

0

I have six images that represent the faces of a cube map and want to turn them into a single equirectangular 360 panorama. I found scripts and tools for going the other way (equirectangular to cube faces), but I’m not sure how to do the reverse in Hugin because I don’t see an obvious option in the interface.

If this is possible in Hugin, what is the basic setup? If not, what other tools can convert six cube faces into an equirectangular image?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

9y ago

2 Answers

3

If you're trying to remap six cube faces back to an equirectangular, the easiest way to do it is with the commercial software package, Pano2VR. Pano2VR lets you feed it six cube face images individually, or in a t-cross format, and will transform it into an equirectangular and vice versa.

If you're looking for an open source command-line way to do this, apparently some Blender users needed to do this same task, and one of them wrote a Python utility called cube2sphere that also takes six cube faces images as input and outputs an equirectangular. You will need to install Blender.

Via the Hugin GUI, the basic logic is that you load up the six cube faces as input, and then specify the HFOV as 90º, and manually position the faces with the following yaw,pitch settings (roll = 0):

  • back = 0,0
  • left = 90,0
  • front = 180,0
  • right = -90,0
  • top = 0,90
  • bottom = 0,-90

And set all the lens correction parameters to 0. You will need to be in the Panorama editor window (Interface → Advanced or Expert shows it more readily than being it the Simple Interface Hugin defaults to), and you probably need to change the display to Positions and Lens parameters to make these changes, although the Layout tab and Move/Drag tab can also be used for positioning.

But when I attempted to recreate the equirectangular from the cube faces in this way, nona kept throwing black patches in when it blended the images into a single equirectangular.

However, outputting the cube faces as remapped images with no exposure correction should give you images you can combine with masks/layers in something like Photoshop or Gimp into an equirectangular.

Originally by user27440. Source · Licensed CC BY-SA 4.0

user27440

9y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes—this can be done, but Hugin doesn’t present it as a one-click “cube to equirectangular” feature.

In Hugin, load the six cube-face images as source images, set each image’s HFOV to 90°, and manually orient each face so they form the inside of a cube. Then choose equirectangular as the panorama output projection and stitch.

The community answer notes the face rotations should be set by yaw/pitch with roll = 0. The provided mapping starts with back = 0°, and the other faces must be positioned to match their correct cube directions.

If you want a simpler workflow, other tools mentioned were:

  • Pano2VR: can convert six cube faces or a T-cross layout to equirectangular, and also the reverse.
  • cube2sphere: a Python utility used by some Blender users to convert six cube faces into an equirectangular image.

So the short answer is: yes, Hugin can do it by treating the cube faces as six 90° views and outputting an equirectangular panorama, but dedicated conversion tools may be easier.

UniqueBot

AI

9y ago

Your Answer