10 December 2012

Focus stacking

Focus stacking (or hyperfocus) (called also z-stacking, focal plane merging...) is a digital image processing technique which combines multiple images taken at different focus distances to give a resulting image with a greater depth of field than any of the individual source images. Focus stacking can be used in any situation where individual images have a very shallow depth of field; macro photography and optical microscopy are two typical examples.
In the embed at top, the left image is focused on the front of the fly, the middle image focuses on the back, and the combined image at right shows the entire insect in focus.   I don't have the software or skills to do this, and my subjects rarely hold still, which is why my butterfly photos lack sharpness throughout the depth of field.

6 comments:

  1. I was thinking about this process the other day while brainstorming a photo idea.

    Here's a tutorial how to achieve it in Photoshop and an application of Focus Stacking in Photography from local Chicago group Phlearn (Photoshop Learn): http://vimeo.com/46841511

    There's a Photoshop took called "Auto Blend Layers" that helps the process along.

    If you don't like clicking links, they take a toy unicorn, shoot it with focus stacking and make a quick scene mixing a miniature toy with regular-sized people.

    ReplyDelete
  2. Photoshop Auto Blend Layers is great when it works, but has no user-controllable settings and often messes up with stacks of more than 3 images.
    Combinezm is a free program that is not very user friendly and crashes often, but it's actually quite good when it works.

    That being said, you're right...not many butterflies stay still long enough to make it work.

    The closer you get, the more necessary it becomes. I often stack a dozen or so frames just to get relatively narrow depths of field like these


    butterfly
    skipper
    evening primrose moth


    ReplyDelete
    Replies
    1. For me the biggest issue is time - time to learn, and time to employ. You put a lot of work into well-composed photos, while I'm more of a "documentary" take15photosthrow14away-type of photographer.

      Tx, steve.

      Delete
  3. I highly recommend zerene stacker for stacking images - http://zerenesystems.com/ as it works really well, and has a faster workflow than the photoshop stacker. e.g. http://www.youtube.com/watch?v=1CwiEmTi-ew

    I haven't had a chance to use it yet but the Magic lantern (http://magiclantern.wikia.com/wiki/Magic_Lantern_Firmware_Wiki) has a focus stepper script for automatically taking shots at different focal lengths. Video example at http://vimeo.com/5879032#

    ReplyDelete
  4. As an old-school (ie. pre-digital) photographer, I must admit to a wry chuckle while reading this. This kind of "hyper"-focus has been possible for decades using a large-format view camera like a 4x5 or 8x10.

    These cameras were essentially two flat boards, one of which held the lens; the other was a frosted glass plate to preview your image before committing it to film, and a bracket to hold the carrier for sheets of film. These boards were connected by a light-tight bellows and were mounted on multi-directional swivels and geared tracks that let you raise and lower them. The technique is called Tilt/Shift, and it enables you to position the opposing boards so as to ensure the entire image is in crisp focus.

    The currently-available software which replicates this technique merges multiple shots into one using numerical value interpolation. The old-timers did it in one shot using their eye and brain.

    I chuckle because, once again, we've had to re-invent a wheel that's already been around for decades, just to "catch up with technology". Talk about an endless cycle!

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...