Focus Stacking How To:

The Overview. There are several different ways to create a stack of photos. You can move the camera, the subject, or change the distance between the lens and the camera. Typically the camera's position is adjusted in relation to the subject of interest by using a macro-rail. The macro rail allows finely controlled movement of the camera to change the distance between the camera and the subject. This movement slides the in-focus part of the image through the subject. There are more educational links about focus stacking at the bottom of the page. If you've done this before you know it can be a slow and tedious task. Take picture, move the rail slightly, take a picture (ugh! Did I just bump the camera?), move the rail a little more, it is a fairly tedious process. So what does Cognisys have to offer the world of focus stacking? StackShot. StackShot automates the movement of the rail and the triggering of the camera's shutter. This precision controlled rail will take as many pictures you want at whatever step size you'd like (down to 2 um). So how does it work? Let's first start off with the connections involved.

Connecting StackShot is very simple. First connect the macro rail to the controller with the supplied 4 conductor cable. Next, StackShot requires power. This can be accomplished with the supplied AC adapter or an optional Li-Ion Battery Finally connect the shutter release of the camera to StackShot. This is the mechanism StackShot uses to control the camera. The cable that goes between the camera and StackShot needs to be purchased separately. If your camera does not have an external wired shutter release we do offer a Universal IR remote that works with most cameras that have an IR input.

StackShot Wiring Diagram

The Equipment. There are plenty of options in the photographic world for taking macro photographs; macro lenses, microscope objectives, bellows, inverted lenses, extension tubes, etc. Use whatever lens and camera setup you are comfortable with. Regardless of the setup you choose you will want to have a feel for the depth-of-field (DOF) of your lens and aperture setting. Consult your lens manual as this information is often published there. In the ant example below the manual states the depth of field for the Canon MP-E 65mm, at 3x magnification and f/8 is 0.249mm. Three is an excellent discussion on depth of field and focus stacking here, Rik Littlefield of Zerene Stacker does a great job of explaining the subject in the fourth post down.

Stacked Ant Details:

Lens: Canon MP-E 65
Flash: Canon MT-24
Magnification: 3X
Aperture: f/8
Shutter Speed: 1/60
Camera Mode: Manual
Flash Mode: Manual 1/32 power
StackShot Mode: Auto-Distance
Stacking Step Size: 0.15mm
Settling Time: 3sec
Images in Stack: 38
Software for Stacking: Helicon

Focus Stacked Ant

The Process. The first step in the stacking process is to adjust you camera and flash settings to get proper exposure. The one difference for focus stacking is that you will want to use full manual mode for both the flash, shutter and aperture. The auto exposure modes tend to meter the scene a bit inconsistently causing a significant variation in brightness of the photographs over the range of images in the stack.

In this example we're going to use the "Auto-Distance" mode in StackShot. Since the DOF is 0.249 mm, the "Distance per Step" variable in the controller is adjusted to 0.150 mm. It is desirable to have some overlap of in focus depth between photographs. Using the FWD and BACK buttons the position of the camera is adjusted to the initial starting point for the first picture in the stack. StackShot will travel in both directions so it can stack from the foreground to the background or visa versa. Pressing the Up/Down button sets the starting point for the stack. Then the position of the camera is adjusted to the final position of the stack. One more button press initiates the capturing process and the camera is moved by the distance entered (0.150 mm) with a picture taken at each step. After the rail takes a step there may be some unintended motion in the camera due to the setup. A configurable "settle" time may be adjusted to meet the specific needs of the shooting environment. What about exposure bracketing? StackShot can be configured to generate multiple shutter pulses (exposures) per step. This feature may also be useful for cameras that require a preliminary shutter press to activate mirror lock-up. A configurable delay between pulses allows additional fine-tuning. At the end of the process StackShot defaults to returning to the starting position. This lets you experiment with different camera and/or flash settings for subsequent runs. You might want to shoot a place holder shot of your hand between runs to act as a book-mark.

The stack of images has been created. Now what?

Software. Now it is time to use the software of your choice to combine the images. There are several possibilities including Helicon Focus, Zerene Stacker, Photoshop, or Combine ZM. Both Helicon Soft and Zerene Stacker offer 30-day evaluation versions, they can be downloaded here:

Helicon Soft Logo Zerene Stacker Logo
Other Resources. Here are a couple additional web sites that go into detail about the Focus Stacking process:
Extreme Macro - Johan J Ingles-Le Nobel gives some excellent tips on focus stacking. Including sections on Focus Stacking Software and Work Flows.
Photomacrography Forum - Great forum for anything related to macro photography - Well worth a visit.

The Results.

Carpenter Bee Stack

This focus stacked image of the Carpenter Bee was taken by Alexander Zubricky. The image is the compilation of 10 individual pictures collected with the help of StackShot and then merged together.

This is a picture of a Maple Stamen. The picture was taken with StackShot and a 4X microscope objective. It contains 26 frames separated by 50 um. Below is a movie made up of the individual frames. Instead of stacking all of the images they are played back in the sequence they were captured. The movie shows the very shallow depth of field in the individual frames. Thanks again to Linden Gledhill for providing the images and video.

Maple stamens - Copyright Linden Gledhill from Cognisys Inc. on Vimeo.