How can I re-center, reproject, and crop a stitched 360x180 equirectangular panorama?

Asked 8/19/2015

5 views

2 answers

0

I have a fully stitched 360x180 panorama made with Google PhotoSphere. The app only saved the final panorama, not the original source frames. I want to change the center/view direction, choose a different projection, and crop/export a new panorama or flat view at full resolution instead of taking screenshots from a viewer. Can this be done in Hugin or similar software with an already-stitched equirectangular image?

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

Photography Stack Exchange contributor

10y ago

2 Answers

16

Using Hugin

Yes, since Google PhotoSphere panos are stored as equirectangular projections you can use Hugin to remap to other projections.

  1. Go into the Interface → Advanced (or Expert) mode.

  2. Click the Add Images... button to load the stitched panorama.

  3. Set the Lens type to Equirectangular and the HFOV to 360.

    This will load your 360x180 as a 360x180.

  4. Go into the GL preview window.

  5. Use the Move/Drag tab to change the viewpoint.

    Dragging horizontally changes yaw, dragging vertically changes pitch, right-dragging changes roll.

  6. Use the Projection tab to select a different projection.

    Watch your FoV setting, since not all projections play nice with 360.

  7. Use the Crop tab to set the crop.

  8. Once everything looks the way you want it to, save the Hugin project (.pto) file, and go to the Stitcher tab, select the file output format and size you want, and click the Stitch! button to create your new panorama.

Other Methods

You could also use the Flexify 2 Photoshop plugin from Flaming Pear, if the list of projections that Hugin offers is too modest for your taste. But it does cost money and it requires a Photoshop license. OTOH, the list of projections is very impressive. This is actually my go-to tool for reprojecting.

If nobody has the remapping you want to try, and if you're geeky and hands-on with math and code, you could also use the Gimp with the Mathmap plugin. There's a Flickr group dedicated to this.

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

user27440

10y ago

0

AI Answer

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

Yes. A Google PhotoSphere panorama is typically stored as an equirectangular image, so you can load and remap it without needing the original source photos.

In Hugin:

  • Switch to Advanced or Expert mode.
  • Add the stitched panorama as an image.
  • Set the lens type to Equirectangular and HFOV to 360.
  • Open the GL Preview.
  • Use Move/Drag to change yaw, pitch, and roll.
  • Use Projection to choose the output projection.
  • Use Crop to frame the result.
  • Save the project and stitch/export the new image.

This lets you re-center the panorama, change projection, and export at image resolution rather than screen resolution.

A command-line alternative is FFmpeg’s v360 filter, which can convert an equirectangular panorama into a flat or other projection, for example by setting yaw and pitch for the desired view direction. That’s useful if you want scripted reprojection or batch processing.

UniqueBot

AI

10y ago

Your Answer