Focus Stacking

by randofo in Craft > Photography

7611 Views, 76 Favorites, 0 Comments

Focus Stacking

FancyFeatherStacked.jpg

Learning how to focus stack is an important technique for every macro or micro photographer. Focus stacking is a post production method that allows you to combine many different images shot at different focal planes to make one crisp focused image. This is useful because (typically) the larger the magnification of your lens, the shallower of a focal plane you have to work with. It is unsurprising that a typical application of this technique is microphotography where it is often impossible to get all of your subject in focus at once. Using this approach, you can stitch multiple slightly blurry images together to get one crisp image.

Supplies

This tutorial uses Photoshop.

(Note that some of the links on this page are affiliate links. This does not change the cost of the item for you. I reinvest whatever proceeds I receive into making new projects.)

Shooting

alternate.jpg
sequence.jpg

The first step before you can focus stack your images is to shoot your images. Using an adjustable bellows setup or macro rail, take a series of photos starting with your subject slightly out of focus. Slowly and incrementally increase the focal plane until your subject comes into and, once again, just out of focus. The goal is to get as much of the subject into focus as you can.

In an ideal world you would have a motorized macro rail which increments your camera at fixed intervals. However, these cost hundreds, if not thousands, of dollars. Doing it by eye should work for most intents and purposes.

To learn more about shooting microphotography photos, check out my DLSR Microphotography instructable.

Load the Image Sequence


The first step is to load the image sequence into Photoshop as a series of layers.

On the top app menu, navigate to File --> Scripts --> Load Files into Stack...

A new window titled "Load Layers" should open. Click on the Browse... button and locate your image sequence. Select all of the images and click open.

Finally, make sure that none of the check boxes on the bottom are selected, and click OK on the top right.

Align the Layers


Select all of the layers from the Layers menu.

On the top app menu, navigate to Edit --> Auto-Align Layers...

When the new window opens make sure that only Auto is selected, and then click OK.

Blend the Layers


Now is time to blend all of the layers together into one image.

On the top app menu, navigate to Edit --> Auto-Blend Layers...

When the new window opens make sure that Stack Images is selected and the checkbox on the bottom that says Seamless Tones and Colors. Finally, click OK to blend the layers together.

Flatten the Image


The next step is to flatten all of the layers by going to Layer --> Flatten Image. This will remove the transparent background and combine the entire image stack into one image.

Crop the Image


After aligning and blending the layers, the center of the image is typically the most in focus. Also, there is often transparent or "empty" space around the outside borders of the image due to slight inconsistencies in alignment.

Tighten in upon the center of the image by using the Crop Tool to remove any empty or excessively blurry space around the borders of the image.

Color Correction

ColorCorrect.gif

Once the image is cropped, it is time to color correct the image to your liking.

Typically, I only adjust the levels and the curves of the image. Sometimes I will slightly tweak the hue and saturation if I feel that it is off.

Practice

NeedleStacked.jpg
driedBloodToenail.jpg
diamondStack.jpg

The last step is the most important, and that is to keep practicing.

Even after doing this dozens of times, I'm hardly an expert at this process. Like any other skill, the only way to truly learn it is to keep doing it.

I wish you the best of luck, and hope you have some fun!

Did you find this useful, fun, or entertaining?
Follow @madeineuphoria to see my latest projects.