Close-up photography is now a lot more powerful and exciting than ever before. That's because recent advances in digital photography now make it possible to produce close-up photographs that have both high resolution and large depth of field.
Depth of field has always been a big problem when photographing small things. Stopping down the lens gives more depth of field, but only to a certain point. Stopping down too much just makes the entire image fuzzy because of diffraction effects. When photographing something the size of a entire housefly, the optimum point is typically f/8 or wider, and the useful depth of field ("depth of detail") for a single picture is often 0.1 mm or less. The problem becomes more severe with greater magnifications.
So, when using traditional photographic techniques, the challenge has always been “to determine the optimum lens aperture for effecting the golden mean between stopping down the lens for depth of field and opening it up for good resolution.”[1]
Recent advances in digital photography greatly relax this tradeoff between resolution and depth of field.
The concept is simple. Instead of shooting one picture with a carefully chosen focus plane, you shoot a “stack” of multiple pictures, sweeping the focus plane through every place where you want to see detail. Some sophisticated but easy to use software then processes the stack, picking out the in-focus portions and combining them into a single picture that has both high resolution and large depth of field.
The technique is effective over a wide range of applications. If you are happy with your current resolution, and you just want some more depth of field, then you may want to use short stacks, say 2-10 frames. Or if you want to push the technology, it's quite practical using current computers and cameras to stack 100 or more different focus planes. This allows opening up your lens to achieve optimum resolution, while still getting enough depth of field to cover your entire subject. The result can look remarkably like a scanning electron micrograph, but in true color.
The main limitation is that your subject cannot move while the image stack is being shot.
The photographs in Figures 1-5 (above and below) illustrate a fairly wide range of what can be accomplished.
There are currently two software packages that are free or inexpensive and are suitable for this kind of work. CombineZ5 ( http://www.hadleyweb.pwp.blueyonder.co.uk/CZ5/combinez5.htm) is free and can be used without restrictions. Helicon Focus (http://helicon.com.ua/ is a commercial product that can be used for free under some restricted conditions. These two packages have complementary capabilities; each is better than the other under some circumstances. I usually run them both and pick the result that I like better. Generally speaking, Helicon Focus is easier to use while CombineZ5 has more options.
To do this kind of photography, you will need the following items:
The easiest way to get started is to use whatever close-up arrangement you are comfortable with. Set up your macro lens as usual, using a small aperture to maximize depth of field in each frame. Shoot a short stack, say 5 frames, stepping the focus plane by roughly the depth of field in a single frame. Then download and run the software, using the “Do Stack” macro if you have chosen CombineZ5. See that your depth of field has been multiplied by the number of frames, and be encouraged to continue.
It is easier to get good results if you can adjust focus in uniform steps. My favorite method is to use a screw-driven X-Y positioning table and vise sold for machining.[2] This device allows precision positioning calibrated down to 0.001 inch, is useful for even smaller increments, and its massive construction minimizes problems with vibration. (See Figure 6.) Other good alternatives include tic marks on the focus ring of a macro lens, using a macro focusing rack, mounting the subject on the vernier stage of a microscope, or using the built-in focusing mechanism of a microscope, either shooting through the microscope or attaching an extension to its stage to hold the subject for external lenses.
After you are comfortable with extended depth of field software, you may want to try more aggressive techniques using wider apertures and deeper stacks to achieve higher resolution. I find that the following process works well:
You may also find the following hints helpful.
Lighting matters. Always position and illuminate your subject to highlight the features that you care about. This topic is discussed at length and beautifully illustrated in the now out-of-print Kodak Publication N-12, Close-up Photography and Photomacrography. Fortunately, copies of this publication are still commonly available through used booksellers.
Flash illumination can introduce undesirable variation from frame to frame. Continuous illumination works well. If your camera can tolerate long exposures, ordinary flood lamps may be completely adequate to produce good work. All of the photos in this article were produced with the lighting setup shown in Figure 6, using a Canon Digital Rebel camera.
With both programs, the most serious problems are caused by overlapping detail in the subject. Where part of the subject passes in front of another part, the software often has difficulty deciding exactly which features should be shown. Most commonly, this shows up as blurring around sharp transitions in depth. The amount of blurring can be reduced in Helicon Focus by using smaller focus and smoothing windows (R and S parameters). Blurring can be reduced in CombineZ5 by reducing the threshold for depth determination (Find Detail parameter) and by reducing the amount of smoothing in the depth map (larger number of the Create Lowpass Filter command). In really extreme cases, such as the Painted Lady eye shown in Figure 5, a completely different approach may have to be taken, such as using the CombineZ5 “Do Average and Filter” macro.
Another common problem is “halo”, which happens when strong contrast occurs between the subject and any unfocused background. It results from the software detecting the edge of the blur circle in unfocused frames, and incorrectly treating it as detail to be preserved. Halo is most obvious with black backgrounds. It can be minimized by using a less contrasting background color, by using a slightly textured background, or (in some cases, using CombineZ5) by increasing the threshold value for the Find Detail command.
Finally, be cautious
about JPEG image compression. Stacks that have been
compressed too far can make the software detect “detail” where in fact
there was none, causing mistakes in choosing which pixels to put in the
final image. What works depends on your camera,
subject, and how you use the software, so you’ll have to experiment to
see what you can get away with. When in doubt, set
your camera to produce the highest quality images that you can afford
to store and process.
Extended depth of field digital photography opens a wide range of possibilities that were previously unavailable because of basic limitations of optics. The processing described in this article, while conceptually straightforward, has become broadly usable only during the last few months due to simultaneous improvements in computing speed, memory and storage capacity, digital camera technology, and software development. Other complementary techniques are also being developed, such as wavefront coding[3] that promise further significant improvements in the long term. These are exciting times!
Thanks are due to Dr. David James, WSU, for providing some of the livestock used for illustration; to Dr. James, Alan Hadley, Dave Nunnallee, John Hollenberg, and David Sykes for valuable discussions; and of course to all the developers of this great technology.
Figure 2. Side-by-side comparison of the extended depth-of-field image produced by CombineZ5 and one of original frames from the stack of 48.
Figure 3. Erynnis propertius larva, final instar. Assembled by Helicon Focus from 6 frames, just enough to render the entire head capsule in focus at f/8, the aperture producing highest resolution at this magnification.
Figure 4. Icaricia lupini egg, processed by Helicon Focus from a 59-frame stack. Shot with a 10X, 0.25 N.A. microscope objective on 240 mm tube. Representative single frame shown at right. For additional information, see http://www.janrik.net/insects/ExtendedDOF/lupiniEggStereo.html
Figure 5. Labial palp and eye of Painted Lady butterfly (Vanessa cardui). 92 frames stepped by 0.001 inch. Overall size 3x2x2.3 mm (width x height x depth). The many overlapping hairs of this specimen required special treatment, using CombineZ5 “Do Average and Filter” as described at http://www.janrik.net/insects/ExtendedDOF/DifficultTestCase.html .
Figure 6. The setup used for all photographs in this article. The heavy screw-driven X-Y table provides both precise positioning and excellent resistance to vibration, with an extra cross-brace added to support the camera. llumination is provided by a conventional floodlamp plus fill-in lighting (not shown). The subject being photographed is the Icaricia lupini egg shown in Figure 4.
[1] Close-up Photography & Photomacrography, Kodak Publication N-12, 1977, pg. 78.
[2] Mill table and vise, e.g. Enco Model #201-2826 and #426-8080, www.use-enco.com.
[3]
Wavefront coding keeps a focus on applications,
http://optics.org/articles/ole/8/10/5/1