Quick Guide to Using Hugin Panorama Stitching Software

Here’s a quick guide to using the free Hugin panorama stitching software to create a basic high-resolution panorama from a sequence of individual images.

Quick Guide to Using Hugin Panorama Stitching Software
Text & Photos By David Coleman
Last Revised & Updated:
Filed Under: PanShooter
Topics: Panoramas

I MAY get commissions for purchases made through links in this post.

Have Camera Will Travel // Newsletter

Practical field notes, hands-on gear tests.

There are several options when it comes to panorama stitching software. One of the best is Hugin. It’s free and open source. There are versions for Windows, Mac, and Linux. And while it’s quite straightforward to use the basic, default options, there’s a lot of power under the hood if you decide to go digging.1

While I typically use PTGUI Pro (and have been for a while now, since 2005), which based on the same underlying stitching engine, Hugin is a cheaper option (i.e., it’s free) that probably makes more sense for many users.

So here’s a quick and basic walk-thru of how Hugin works. I’m focusing here on the basics. As in, the very basics. So I’m going to keep things simple. There are many ways to tweak the results or compile spherical or other projection images, and I hope to cover some of those separately. But for now, I’m going to take a straightforward series of JPG images and output them as a simple stitched rectilinear panorama.

About the images

This sequence of images of Sydney Harbour at night was shot using a tripod and with the camera in full manual mode. There’s not much in the foreground, so there was no real need to use a dedicated panorama head. They were originally shot in RAW, but for this example, I’m exporting them as JPGs in Lightroom with the sRGB color profile.2 Each measures 2848 by 4288 pixels. (For very high-quality jobs, I’d normally export them as 16-bit TIFF files with the ProPhoto RGB color profile.)

One thing I have wanted to test is how well the automatic alignment works. As a simple hurdle, I’ve exported the images in reverse order. That is, captured from right to left. You can see the results of that in the Load Images step below.

Screenshot of Hugin Panorama Stitcher input images

Using Hugin

For this guide, I’m using the simplest of Hugin’s interfaces, which is known, oddly enough, as Simple. You can switch between the interfaces with the menu item Interface, with options for Simple, Advanced, and Expert. Each progressively offers more fine-tuned controls.

Hugin takes a step-by-step approach, so you generally want to move from left to right with the tools at the top of the window.

Before you start using Hugin, you’ll want to get your images ready for use. If you have your camera set to save JPG or TIFF files, you can use those directly out of the camera (Hugin won’t import RAW files). But in a lot of cases, you’ll probably get better results if you first edit the images at least a little in something like Lightroom. Just make sure that any exposure or cropping changes are applied across all of the images; if you have one or two images with different exposure than the others, there’s a high risk of uneven lighting in the stitched panorama.

Load images

The first thing to do is to load your images in Hugin. You can load them all together by selecting multiple images.

In this case, I’ve deliberately exported to the images in a backward sequence, so it looks scrambled when I’ve first ingested the images.

Screenshot of Hugin Panorama Stitcher input images with preliminary stitching

In this example, it automatically detects that the images were shot with a 48mm focal length and that it was shot with a camera using a cropped APS-C sensor (that’s the 1.5x in the focal length multiplier field).

Align the images

So long as you’re working with images that are reasonably cleanly shot–as in, there’s not much movement in the nodal point between them–I find that the automatic alignment tool works well. It’s just a case of hitting the Align button and letting it do its thing.

Sultan Ahmed Mosque Interior Hand Painted Tiles Calligraphy Istanbul Turkey. Photo by David Coleman - havecamerawilltravel.com

Have Camera Will Travel // Newsletter

Practical field notes, hands-on gear tests, and the fun of exploring the world with a camera in hand.

You’ll get a popup screen with a bunch of code as its processing, and then you should see the newly aligned image in the window and a brief report at the top right detailing the number of control points that have been used as the mean error after optimization.

Screenshot of Hugin Panorama Stitcher aligning the images

If the automatic alignment hasn’t worked very well on your set of images, it is possible to manually override the control points. Go to View > Panorama Editor, and then click on the Control Points tab. The finer details of how to use this are beyond the scope of this post, but the gist is that you want to match up specific points in one image with the same visual point on its adjacent images. You can find more details here.

Screenshot of Hugin Panorama Stitcher align images

Create panorama

The final step is to actually stitch the final image. For that, use the Create Panorama button. Even in the simple interface, you have some settings you can control here. They include the dimensions of the stitched file, the file format of the stitched panorama, and the amount of compression. In this example, I’ve left it at the original dimensions but changed the file format to JPG (from TIFF).

Screenshot of Hugin Panorama Stitcher create panorama

For a straightforward, simple panorama, you’ll want to use the “Exposure corrected, low dynamic range” option. The others are for exposure blending, or HDR, where each image has versions at different exposures (i.e., a more complicated system than I’m using here).

You’ll then need to specify a filename and place to save the stitched panorama. Hugin then calls up its own batch processor to actually run the stitching.

The final step is to crop the image to eliminate the unused space around the image. I used Photoshop, but you can use any image editor for this.

Panorama stitcher raw
Panorama stitcher cropped

More advanced controls

That’s the very basic workflow for creating a simple panorama with Hugin. There are many ways you can tweak this workflow, from masking out unwanted or problematic areas, manually aligning control points, changing the projection, and specifying which algorithms are used to do the processing. I’ll try to cover some of those in a separate post, but if you want to access those advanced features, go to Interface and choose Advanced or Expert.

Best practices

There are some things you can do to maximize your chances of getting good results in your panoramas.

Shooting

  • While panorama stitching software is getting better and better at smoothing out inconsistencies between images, compiling panoramas generally works much better if you start with consistent images. That means using the same exposure, focus, and zoom settings for all the shots in the sequence.
  • Shoot each image with a 20%-30% overlap with the images next to it. That will give plenty of opportunity to find reliable control points to match up.
  • Ideally, all of the images should be taken rotated around a single, fixed nodal point. In practice, that’s really only possible with a dedicated panorama head. Failing that, a tripod or other fixed point provides a good rotation point. Handheld can also work, but you might run into trouble with wide-angle lenses and with subjects close to the camera.
  • In most cases, avoid using a polarizer filter.

Editing

  • In keeping with the theme of consistency across all of the ingredient images, make sure that any post-processing edits you do in Lightroom or other image editing app are applied across all the images in the sequence.
  • Another handy tip if you’re using something like Lightroom or DxO PhotoLab is to apply the lens profile vignetting fixes before you export the photos.

Notes & References:

  1. The version I’m using here is v.2019.2.0 for Mac. [↩︎]
  2. Lightroom has its own built-in panorama stitching feature as part of its Photo Merge tools. I have a more detailed guide on using that here. [↩︎]
Found this helpful? Personalize your search results.
Add as Preferred Source
Profile photo of David Coleman | Have Camera Will Travel | Washington DC-based Professional Photographer

David Coleman

I take photos for a living. Now based in Washington, D.C., I have spent the last 30+ years shooting across seven continents — from underwater environments to mountain peaks. My images and time-lapses have appeared in major newspapers, magazines, museums, professional sports stadiums, and even on massive architectural scrims covering world-famous buildings.

I started this site in 2009 to field-test gear, share problem-solving solutions, and share what I've learned in shooting around the world. I only review gear and services I have personally used. No armchair opinions — just real-world experience. Because, for me, the fun is in the making of the photo.

You can see my travel photography here, license my images or buy prints here, or sign up for my Substack.

Conversation

  1. Is there a free/ subscription photo imaging software for iPad which includes HDR and Panorama? If there is what would you recommend? From reading your article it might appear a Mac or PC might handle the software better.

    Reply
    • Good question. I need to investigate more on the mobile apps for this. Most of my panoramas tend to be high-resolution and require fairly heavy processing power. But I haven’t checked recently whether there are any iPad apps that also work well. Will aim to do so.

      Reply
  2. I’ve been using Hugin for several years. But I’m suddenly getting a problem when I get to the ‘stitch’ stage. I get several mysterious messages. E.g. I’m asked whether I want to overwrite a file with the same name as the one I’m trying to create, which, so far as I’m concerned doesn’t exist. (That could possibly be because I’ve already tried to do so, but it’s somehow not showing up on Explorer or Fasttone or whatever. I get an error message “}could not set current working directory” and “error 3”.
    As I say, I’ve been using Hugin for years, but I don’t have a clue what’s going on now. I’ve just downloaded and installed the latest version in the hope that this would solve it. But it’s behaving exactly as it did with the previous version that I’ve just uninstalled.
    I’d be most grateful if you could help.

    Eric Coombes

    Reply
    • This sounds similar to an issue that was raised not long ago with Mac version. For that case, I posted a workaround in the comments here that was working for me. I don’t know whether something similar will work with the Windows version, but it might be worth a try.

      Reply
  3. I’ve just begun to use this amazing stitching tool and your article is most helpful. In particular, may I ask so as to be sure is it necessary for camera to be on Manual exposure? So far my stitched images turned out badly and I think it’s because my camera is on automatic exposure and so reading your point about Manual is a wow moment for me! My other problem is I didn’t have enough overlap, so will do at least 1/3rd .. will target >40% (per one youtube I saw). Thank you in advance.

    Reply
    • It’s not a requirement to shoot them in manual mode, but the clear advantage is that it keeps a consistent exposure from shot to shot. That helps avoid any ugly seams caused by one shot having a slightly different exposure to the one next to it. It’s especially noticeable in scenes with clear blue skies, for example. If your camera has exposure lock, that’s another good way to keep the exposure consistent without going to full manual mode.

      Reply
    • Thanks muchly for your prompt response. Indeed you’ve got got it on the head – noticeable seams, of garden grass section of photos foreground that I couldn’t figure out why till now. Am at amateur level, camera is a Canon mirrorless …will check if it has an exposure lock thanks also for that tip. Am okay with setting it to full manual mode. Best

      Reply
    • Good question, but that’s nothing I’ve tried, sorry. It’s going to depend on the resolution of the images, how well they’re aligned, and the power of your computer. Regardless, it’s going to take a while. Typically, when I need high-resolution spherical panos I use a wide lens with a dedicated pano head, and even with three or four rows, it comes to far fewer than 100 images. So I don’t have clear answer to that.

      Reply
  4. Hugin would be great if the terrible 90s interface and workflow was updated.

    The little known Microsoft ICE gives fast drag and drop results and shows how a modern app should behave. ICE is the only panorama app I’ve seen to have an Autocomplete option that fills in missing areas of sky etc. So simple to use and is good coping with differing exposures.
    I keep going back and trying Hugin but the experience and ridiculous amount of time to produce one panorama leaves me cold. I’m a Linux user so I’ll just keep on having a Windows VM just to run ICE.

    Reply
    • Yes, ICE is certainly impressive, especially considering how old it is. Even more so that it’s free. And I agree about Hugin’s interface. Other apps that include autocomplete to fill out the canvas edges include Lightroom, Photoshop, and PTGui Pro (all paid apps).

      Reply

Leave a Comment