Hugin is an excellent tool for for aligning and stitching images. In this article, we’ll focus on aligning a stack of images. Aligning a stack of images can be useful for achieving several results, such as:
bracketed exposures to make an HDR or fused exposure (using enfuse/enblend), or manually blending the images together in an image editor
photographs taken at different focal distances to extend the depth of field, which can be very useful when taking macros
photographs taken over a period of time to make a time-lapse movie
For the example images included with this tutorial, the focal length is 12mm and the focal length multiplier is 1. A big thank you to @isaac for providing these images.
You can download a zip file of all of the sample Beach Umbrellas images here:
Select the Stitch! button and choose a place to save the files. Since Hugin generates quite a few temporary images, save the PTO file in it’s own folder.
Hugin will output the following images:
a tif file blended by enfuse/enblend
an HDR image in the EXR format
the individual images after remapping and without any exposure correction that you can import into the GIMP as layers and blend manually.
You can see the result of the image blended with enblend/enfuse:
There is one more thing to keep in mind by default (at least in the past) darktable would save tiffs with attached crop information which didn’t with a lot of software. So now in the remapper options for nona (Hit the button Processing: Remapper: [Nona] [[ OPTIONS ]] ) I always disable save cropped images. This solves that problem.
Just checking back in to say that I had a chance to look through the tutorial in detail, and it looks great! Thanks for getting this together: it’s going to help a lot of people!
Probably a minor point but checking ‘Exposure fused from any arrangement’ on the Stitcher page causes the run to fail with error message about excessive overlap. Checking ‘Exposure fused from stacks’ instead fixes the problem.
Are there any recommendation on how to sharpen the image after this type of merge? I imagine it would be best to apply USM as the last step, but I haven’t investigated in much detail. Merging already sharpened images does not look too bad to me.