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

My trusty old focusing rail. This device sits between the camera and the tripod. Turning one wheel allows me to move the camera closer to the subject in tiny, controlled increments. Turning the other wheel makes precise sideways adjustments.


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, but you don’t want to open any of your files yet. That’s because you will be loading your photos into the software using a sneaky new way. So, with no files open, go to Photoshop’s 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 never have happened if you had opened the files the normal 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 Layer menu and select Flatten Image.

You might then 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 we previously could only dream about.

Photography

Beginners’ series on digital SLR photography

The essential basics

Digital SLR photography — a beginners’ guide
A quick guide to understanding your new toy

Learning from examples
Picking up where the first article left off

Understanding aperture
This is one of the fundamental tools for controlling exposure.

Understanding shutter speed
This is another of the fundamental tools for controlling exposure.

 

Making sense of technical stuff

Megapixels
How many is enough?

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

How to choose a lens
Making the right choices can improve your shots and save you money

newTips for using tripods
Getting the most out of them

JPG versus RAW
Which is the best way to work?

Understanding histograms
Making sense of this handy tool

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

Pixel density in sensors
Helping APS-C cameras photograph distant objects.

Fast lens, slow lens
What’s the difference?

Understanding colour temperature
It doesn’t have to be complicated.

Understanding resolution
What it means, as it applies to digital photography

 

Photography words explained

What’s a 100% crop?
I explain a term you often hear in digital photography

newWhat are specular highlights?
You’ll recognise them when you see them

newWhat is bracketing?
A commonly-used word for a handy trick

 

Photography at night

Photographing small critters
in the dark

How I take my shots when there’s no light

newTaking pictures of the moon
You need a fairly long lens, and these simple tricks

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

Understanding dynamic range
Dealing with too much contrast

Working in harsh light
Getting some of the colour back into midday photography

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?

 

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

Wildlife photography
Tricks the pros use to get better pictures of critters

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

How I take photos of frogs
These tiny critters require a technique all their own.

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

 

Advanced stuff

Image Stacking
Using software to achieve extraordinary depth of field

Sneaky deep-etching
A fast way to cut complicated objects out of their backgrounds

 

Other photography stuff

BLOG (sort of)

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

PHOTO GALLERY

Pics of Australian critters
Some of my recent images

PHOTO SALES

Looking for the right picture?
A small selection of the photos available


Copyright © Mark David. All rights reserved