ShareThis

Showing posts with label focus stacking. Show all posts
Showing posts with label focus stacking. Show all posts

Tuesday, October 19, 2010

Manual focus stack for more DOF in CS3

This is a simple Adobe Photoshop tutorial - manual focus stacking using layer/layer mask. If you intend to stack multiple images (i.e. more than two), then it's probably easier to use stacking software such as CombineZP (freeware) or Helicon Foucs or Zerene Stacker. Focus stacking using CombineZ is covered here. However, if you intend to manual focus stack only two or maybe even three separate images to increase DOF (Depth of Field), then you can consider manually focus stacking them in Adobe Photoshop.

All images were shot with a 40D, MPE65 1X-5X macro lens, and MT24EX Twin Flash with DIY Concave Diffuser.

I have two images to start with:

I will call this "Recipient". This is the one I like, but notice the eye is OOF (out of focus)
manual focus stacking in adobe photoshop recipient IMG_4399 original eye oof

But lucky for me, i have another shot, which I will call "Donor". I prefer "Recipient" over "Donor" but "Donor" has the eye in focus.
manual focus stacking in adobe photoshop donor IMG_4398 copy donor

Now the fun part.

(a) I opened both images, one after another in my Adobe CS3.
manual focus stacking in adobe photoshop +donor n recipient

(b)
Then I go to the "Donor" image, and Select All (Ctrl+A) then Copy (Ctrl+C), then I Paste (Ctrl+V) Donor onto the Recipient image. Now you can see "Layer 1" on top of Background (Recipeint). Notice i also adjusted the Opcacity to 50%.

opacity - manual focus stacking in adobe photoshop

(c) your screen will something like this once you have adjusted Layer 1's opacity.
manual focus stacking in adobe photoshop + overlapped images

(d) Now use the Move Tool to align the two images, particularly the eyes area. You might want to zoom into 100 or 200% for the best possible alignment. You might want to check the alignment by Hiding/Showing Layer 1 (the eye to the right of Layer 1).
move tool to align layers during manual focus stacking in adobe photoshop

(e) once you have aligned the images, click Add Layer Mask (left image) and a white box will appear to the right of Layer 1 (right image).
add layer mask during manual focus stacking in adobe photoshoplayer mask2 during manual focus stacking in adobe photoshop

(f) change the Opacity back to 100% and Invert the Mask by pressing Ctrl+I. Notice the white box is now black i.e inverted.
invert mask in manual focus stacking in adobe photoshop

(g) Now we'll use the Brush Tool to unmask Donor's eye.
brush tool in manual focus stacking in adobe photoshop

(h) Use [ and ] to control the brush size while working on the Unmasking to reveal the Donor's eye that we have inverted (behind Recipient's eye). Be really careful when working around the edges. You can use Ctrl+Z to undo at any time. Now our Recipient has received its new, in focus eye from Donor :)
manual focus stacking in adobe photoshop IMG_4399 focus stacked eye sharp copy

I am sure there are many other ways to do manual focus stacking in Adobe Photoshop, but this is how I normally do it. This Adobe Photoshop Tutorial may seem very complicated and very daunting to you at first but all you need to do is follow the steps and practice it a few times. You'll get the hang of it in no time.

Friday, August 21, 2009

Diffraction Softness and Focus Stacking

There are a few softwares for focus stacking. CombineZ is a great focus stacking freeware that you can use to merge the in-focus areas of different images with same FOV (but different DOF zone) in order to achieve bigger DOF (Depth of Field). I have only used it in macro photography/macro images but I am sure it can be used in landscapes as well.

You can also use CS4/5/6 for focus stacking. File - Scripts - Load files into stack. Once the images are aligned, highlight all the layers, then Edit - Auto Blend Layers. Be sure to check your images for any stacking artefacts.

Other stacking softwares you might want to consider are Zerene Stacker and Helicon Focus.

DOF is like real estate in macro photography, especially so when you go into higher magnification!

In macro,

DOF = 2 N c x [ (m+1)/m^2]

N - f number, c - circle of confusion, = 0.018mm for aps-c, m - magnification

Let's say we shoot at F11 at 1X, the DOF = 2 * 11 * 0.018 [ 2/1] = 0.792 mm

At 2X and F11, DOF = 0.297 mm

At 3X and F11, DOF = 0.176 mm

At 4X and F11, DOF = 0.123 mm

At 5X and F11, DOF = 0.095 mm

However, according to the DOF table in the MPE65 booklet:

At 1X and F11, DOF = 1.584 mm

At 2X and F11, DOF = 0.594 mm

At 3X and F11, DOF = 0.352 mm

At 4X and F11, DOF = 0.247 mm

At 5X and F11, DOF = 0.190 mm

You might notice that the DOF numbers in the booklet are two times the values i calculated using the DOF equation.  Probably has something to do with pupil magnification? http://en.wikipedia.org/wiki/Depth_of_field

Can we use big F number to get big DOF?

To make matter worse, you know you can't shoot at F11 beyond 3X. The diffraction softness will be so pronounced that it severely compromises the image sharpness!


I photographed the scroll wheel of my mouse with the MPE65 at 2X. First at F9 (left), then F16 (right). After that, I did a 100% crop as shown by the yellow boxes above. You can see the 100% crop images below.

Compare the image on the left (F9, 2:1) to the one on the right (F16, 2:1). The image on the right is obviously very very soft (not out of focus) due to diffraction.


Note: at 1X, i sometimes shoot at F16, which gives me a DOF of 2.240 (as opposed to 1.584 at F11 -
that's a huge difference!!!) with reasonable sharpness. However, it all depends on your personal preference and tolerance on DOF vs Diffraction Softness. You can't have both. You need to choose a balance that you can live with.

When the subject is willing and you're up for a challenge, you can try taking multiple shots for focus stacking. Focus on different DOF planes of the subject, provided the subject is stationary and you don't change the FOV much.

I was lucky with this handsome jumping spider as it allowed me to take four shots of him up close.

Notice all four images have different DOF planes..ie focused at different planes of the jumping spider

All images taken with a Canon 40D, Canon MPE65 1X-5X Macro Lens and Canon MT24EX Twin Flash.

IMG_7647stk1 copy

IMG_7648stk2 copy

IMG_7649stk3 copy

IMG_7650stk4 copy

You can try to stack these manually in Adobe Photoshop by using layer mask and selectively reveal the in-focus areas but it's quite a chore when there are too many donor images. Luckily, this can be automated using Focus Stacking software such as CombineZ

Just go File - New, then select all the images for focus stacking. Then Macro - Do Stack and wait.

Once it's done, just go File - Save Frame/Picture As. Pay attention to the edges as CombineZ almost always adds canvas the the frame, which needs to be cropped off. Also check for other stacking artifacts like halos, duplicated hairs etc.

Here's the outcome.

IMG_7647890stk copy

Auto Focus stacking can be done in CS4 as well but i've never tried that so i can't comment much on that.

You should also try manual focus stacking in Adobe Photoshop. It's really easy once you get the hang of it. There is a tutorial here.

Other examples of stacked images:

Green crested lizard, Bronchocela cristatella. Stacked from 9 natural light, handheld shots.
green crested lizard focus stacked IMG_0598stk copy

Jumping spider, stacked from 2 images in CombineZP:
jumping spider focused stacked IMG_7440 7441 stk edited copy

Dragonfly, stacked from 2 images:
dragonfly focus stacked IMG_3058stk copy

LinkWithin

Related Posts with Thumbnails