Photography mdavid.com.au

Digital SLR photography — Stacking your photos to get extreme Depth of Field

What do you do if you can’t produce enough Depth of Field to get your whole subject in focus? You create a stacked image. Here’s how it’s done.

Eastern Dwarf Tree Frog

Getting this entire Eastern Dwarf Tree Frog in focus was made possible using the process called stacking.

Stacking images in photography is the process of taking a series of photos, focused at different points along the subject, and then using software to merge all the sharpest bits of each shot into the one ideal image. That used to be an awfully laborious and time-consuming process when you did it manually (believe me, I’ve tried it!) but modern software can do it in seconds.

Software

This tutorial was done in Adobe Photoshop CS5 Extended. Chances are that similar versions of Photoshop will do this stuff in pretty much the same way. But that’s not the only software to automate the stacking of your photos. There are specialised packages, like for example Helicon Focus, (Mac or PC), which allow you to do the same thing for a much lower price.

Each of the different software packages will have different workflows, but the principles are the same — they merge all the sharp parts of a series of photos into one, super-sharp image.

Focusing rail

A focusing rail sits between your camera and the tripod. Turning the wheel allows you to move the camera closer to your subject in tiny, controlled increments. This focusing rail also has a wheel for making sideways adjustments, which helps when you’re composing your shot.


Focusing rail

I don’t want to suggest that it’s essential to have a focusing rail to do stacked macro shots. The truth is I do a lot of stacked shots working hand-held, including the example here of the frog. But with super-tiny subjects requiring the most precision, you'll find that a stacking rail on a steady tripod will make your life a lot easier.

The focusing rail sits between your camera and a tripod. It allows you to turn a dial in small increments, in between shots, which moves your camera ever so slightly forwards each time. That’s ideal for focusing further and further into your shot.

Manual focus

If you use autofocus then your camera is going to want to keep focusing on the same part of your subject as move in closer. And that’s the last thing we want. So turn off autofocus on your lens.

Take your first shot focusing on the closest part of the creature. In the case of the frog shot it was the it’s nose.

Then for the next shot, move ever so slightly closer. This time I got the eyes in sharp focus. This is where the focusing rail makes things easier.

The idea is that you keep taking more shots, with each one focused slightly further into the scene until you end up with a series like the frog pics shown below. And here’s a suggestion: if you take more than one series of photos, try taking a shot of your thumb or some other thing in between each series so you have a clear division between each series of shots. Otherwise you could end up being confused about which files go into which series.

a series of photos focused on different parts of a frog

You can see how if you combine the sharp bits of all of them you’ve got enough sharp regions to do the whole frog. If your files need any colour correction, sharpening or any other effect then try to apply the same effects to each of them. Because you want them all to look pretty much the same.

I’m going to be working in Adobe Photoshop from this point on. So if you were working in RAW up until this point then now’s a good time to export your files into something Photoshop can open, like TIF or JPG.

Load the files

dialogue box

Launch Photoshop, and without even having any of the files open go to the File menu and select Scripts > Load Files into Stack…

That will bring up the Dialogue Box shown at right. Click on the Browse button, to navigate to the folder where you’re storing your files.

dialogue box

Shift-click to select all the files for your stack and click Open

dialogue box

That will bring you back to your original dialogue box, except this time your files will show up as a list. Click on the option to Attempt to Automatically Align Source Images. Then click OK.

Photoshop then does a really cool thing which would not have happened if you had opened the files the usual way. What it does is, look inside the EXIF data written inside each file to determine what kind of lens was used to take the photos. Then it compares that with its database of all the lenses it knows about. If it knows your lens, then it will remove the subtle kinds of distortion known to be created by that particular model of lens, to ensure that your layers align themselves better.

Multi-layered file


The files open up into a document with multiple layers, with each layer aligned correctly over the others.

Layers palette


Go to your Layers palette, and shift-click to select all of the layers at once. Then go to the Edit menu and select Auto-Blend Layers…

dialogue box

Select the option to Stack Images and also select the option for Seamless Tones and Colors.

Then click OK.

dialogue box

Photoshop thinks really hard for a while, as it does the kind of work that I used to spend half a day doing. The software completes the task in seconds, and does a better job too. It creates masks for each of the layers, hiding the blurred stuff and retaining the sharp stuff.

Go to the Layers menu and select Flatten Image.

You might need to crop the image slightly, to remove the ugly overlaps in the edges, but apart from that, you should now have the kind of Depth of Field in your image that previously we could only dream about.

Photography

Beginners’ series on digital SLR photography

THE ESSENTIAL BASICS

Getting started with digital SLRs
A quick guide to understanding your new toy

Learning from examples
Picking up where the first article left off

 

UNDERSTANDING YOUR CAMERA

Megapixels
How many is enough?

Understanding histograms
Making sense of this handy tool

APS-C vs full frame
The differences explained, and what it means to your photography

Fast lens, slow lens
What’s the difference?

How much camera gear do you need?
Sometimes, less really is more

 

COMMON PROBLEMS AND THEIR SOLUTIONS

Washed-out colours in photos
Why it happens, and how to prevent it

Understanding exposure compensation
Why your photo subject can look so badly exposed, and what to do about it

Getting sharper pictures
Understanding the things that stop your photos from being tack-sharp

 

Noise in your images
What causes it, and what can you do about it?

PHOTOGRAPHY AT NIGHT

newPhotographing small critters
in the dark

How I take my shots when there’s no light


TAKING THINGS FURTHER

Using a telephoto lens to blur the background
Here’s an easy-to-understand explanation of why it happens

Macro photography part 1
Using your DSLR for bug shots

Macro photography part 2
Ironing the bugs out of bug shots

One simple trick
The easiest way to get better wildlife photos

Bird photography part 1
Small, distant, and feathered does not have to mean a bad photo

Bird photography part 2
More hints for beginner bird photographers

Using software to ‘fix’ your photos
A few suggestions for image editing

Image Stacking
Using software to achieve extraordinary Depth of Field

 

Other photography stuff

PHOTO SALES

Photo Library
Pics of Australian critters

 

BLOG (sort of)

The elusive waterskiing duck
It started out as a fun idea …

AN UNHELPFUL GUIDE

Wildlife photography — this guide will not make you into a better photographer
Page 1 | Page 2 | Page 3

Great moments in Nature Photography (Not)
When okay shots meet bad timing


Copyright © Mark David. All rights reserved