Expensive cameras don’t take better photos. Folks tend to learn this when they do the first side-by-side between their gorgeous iPhoneograhy and the objectively worse shots taken with their fancy new $2,000 DSLR. Cell phones have itty-bitty sensors and equally lilliputian optics – how can they take better pictures? Google research has described the technique that their phones use – called “burst” photography – in research papers and blogs. Essentially, they take a whole bunch of pictures and mash them together to make a single good picture. By mimicking the techniques that our cell phones use to take better pictures we get less noisy, more dynamic photos along with the improved light gathering capabilities of a DSLR. High dynamic range images have a large range of brightness in the scene—some light areas, some dark areas. By blending an underexposed image that captures detail in bright areas of the scene with an overexposed image that captures detail in dark areas of the scene you can capture a range of brightness that would not be possible with a single photograph. In the picture above, taken on the pinto arch trail in Moab, Utah, there are two exposures of one scene: the immediate surroundings are in a shadow, the sky and butte in the distance are in the bright sunlight. Below I’ve blended the shots into a single scene with a wide range of brightness – an HDR image: I captured the image above using the following equipment: And that’s it: no tripod and no filters. I shot the image handheld at f/11 ISO 200. The shutter speed for underexposed photo was 1/400 sec. For the overexposed photo it was 1/60 sec. I varied the shutter speed using the exposure bracketing feature of the Nikon D610. After capturing my under- and over-exposed photos I use the following software programs: First, I import my images using a bash script I wrote that maintains a strict file structure. Next, I use Darktable to do lens correction (based on the astounding achievement that is the lensfun database) then I export as 16-bit tif files. At this point, since I shot the images without a tripod, they have minor misalignments. I use the command This command creates precisely aligned, stackable tif files with the prefix Notice in the image above – taken just East of Moran Point at the Grand Canyon in Arizona – that the underexposed image shows more detail in the clouds and the sun, whereas in the overexposed image shows much more detail in the canyon and on the rocks in the foreground. Now I use the enfuse command to produce a not-offensively-garish HDR image of the aligned images: In the final image, we retain both the detail of the sun and clouds in the sky as well as a clear view of the canyon (and its grandeur) and the rocks in the foreground. This is a technique I use constantly to capture shots that would be impossible any other way, AND(!) it uses tools and techniques that are useful for all FOSS photography nerds. Best of all? No high-falutin cellular phone required.Capture ¶
Processing ¶
align_image_stack
which is part of the hugin
packageenfuse
which is part of the enblend
family of FOSS photo toolsexiftool
to manage metadataalign_image_stack
corrects the misalignments and creates a perfect stack of images:#!/usr/bin/env bash
# align.sh
# ---
# By default align image stack tries to find 8 control points in a 5x5 grid
# This finds 16 control points in a 10x10 grid.
align_image_stack \
-a aligned_ -v -m \
-g 10 -c 16 -C \
"$@"
align.sh *.tif
with the above script to create aligned images.aligned_
in the current directory.enfuse -o out.tif aligned_000*
.
Posted