Adobe Photoshop CS4 Auto-Blending Focus Tutorial

March 6th, 2009
by Krishna Mohan

The other day, I found a Long horned beetle clinging to the siding of my house. I grabbed my trusty Canon 5D Mark II and a Canon EF 100mm f/2.8 USM Macro lens and my Feisol tripod. As I could not get all the parts of this beetle in focus I remembered the auto-align and auto-blend trick I had seen in the new Adobe Photoshop CS4. Previously I had tried focus stacking using freeware combinez5 which produced fantastic results. On the web I could get quite a few video tutorials like this and this, explaining their technique but there was dearth of written tutorials with pictures. Probably it is easier nowadays to create a video tutorial and post. So here is my humble effort to show you how I did this. I recommend that you download the latest update of Adobe Photoshop CS4 11.0.1 which updates and improves the quality of the results of Auto-Blend Layers.

I shot this beetle which was sitting on a white dining mat. As the depth field at 1:1 macro setting was too shallow. I took 10 sequential shots maintaining same exposure settings on a tripod but just altering the point of focus little by little. I usually start from the nearest point which I try to be in sharp focus then try little further until I reach the last shot which has the farthest point in focus. Best method to do this is fix the focus on the lens and move the camera little by little forward and keep taking pictures of different focus points. This avoids the geometric distortion all together. Make sure while doing so you make sure that the exposure, speed as well as focus all are locked. This needs a real steady hand or a focusing rail connected to the tripod head.

If you don’t have them then you can try getting the shots by fixing the camera on the tripod and altering focus of the lens by adjusting manual focus ring. Auto focus is a big NO for this technique. Now with Adobe Photoshop CS4 you can easily correct the geometric distortion introduced by adjusting manual focus.

Export from Lightroom to Layers in Photoshop

Export from Lightroom to Layers in Photoshop

My work flow involves Adobe Lightroom 2.3 which manages all my files on my hard disk. Once you import the files from your card, select all the files which need to be blended and choose the option of edit in > Open as Layers in Photoshop. The step is same if you are using Bridge instead of Lightroom. Now Lightroom exports all the files to Photoshop into a single Photoshop document with multiple layers. Each layer consists of a single image. Here I have 10 images of this beetle consisting of various areas of  sharp focus resulting in 10 layers in the Photoshop document.

Select All Layers in Photoshop

Select All Layers in Photoshop

In Photoshop choose Select > All Layers.

Choose Auto-Align Layers

Choose Auto-Align Layers

Then choose Edit > Auto-Align Layers. The Auto-Align Layers dialog box opens.

Auto-Align Layer Dialog Box

Auto-Align Layer Dialog Box

Note: The Auto-Align Layers dialog box has a default Lens Correction setting of Geometric Distortion. This setting gives you the option of compensating for geometric distortion. In addition, the default Projection setting is Auto. When Auto is selected, Photoshop finds and compensates for certain kinds of lenses based on meta data information.

After Auto-Aligning Layers

After Auto-Aligning Layers

Now click OK to view the Auto-Aligned composition. Now all the images are perfectly aligned. You might notice the edges of the picture seems warped this is because Adobe Photoshop has now corrected the geometric distortion.

Auto-Blend Layers

Auto-Blend Layers

With all Layers still selected choose Edit > Auto-Blend Layers.

Auto-Blend Layers Dialog Box

Auto-Blend Layers Dialog Box

Select Stack Images from the Auto-Blend dialog box. Leave Seamless Tones And Colors selected.
Click OK.

If we had not done auto-align before doing the auto-blend then the geometric distortion would be there in these images. And that gives a strange halo effect near the edge of the beetle. So it is always advisable to run auto-align before auto-blend.

Auto-Blend Layers Progress

Auto-Blend Layers Progress

When you turn on the layers, you can see that the images now contain deep focus with all the points in focus.

Cropping in Photoshop

Cropping in Photoshop

Now its time to crop the edge so that main image looks clean. It also gets rid of the warped edges. Now its time to save the image and get back to Adobe Lightroom to further process if necessary. I found many a times the resulting image needs some exposure correction which can be easily done in Adobe Lightroom. Now here is the final image as exported from Adobe Lightroom.

Hope this tutorial was helpful, please ask me any steps if you have found difficult to follow. Please enter your valuable comments so that I can improve on my tutorial.

Tags: , , , , , , , , , ,
Posted in Lightroom, Linux, Photography, Photoshop, Technology | Comments (30)

30 Responses to “Adobe Photoshop CS4 Auto-Blending Focus Tutorial”

  1. Anirban Brahma Says:

    Good tutorial. Thanks for sharing!

  2. drkrishi Says:

    Anirban Brahma,
    Thanks a lot for compliments. I have always loved your work ever since I saw your photo first at Better Photography magazine.
    Regards
    Krishna Mohan

  3. J Westveer Says:

    Nicely done, complete, concise, and easy to follow. THANKS

  4. drkrishi Says:

    J Westveer
    Thanks for your nice comments

  5. Nate Says:

    Thanks for taking the time to put this together!

    How does the image quality of the results from photoshop compare to combinez5?

  6. drkrishi Says:

    Nate,
    Thanks for the comment.
    I am trying to evaluate between CS4 & Combinez5. Preliminary results show Combinez5 is better than cs4. I want to check thoroughly before publishing the result.

    Regards
    Krishna Mohan

  7. Focus Stacking Using CombineZ | Krishna Mohan Photography Says:

    [...] trying out the Auto-Blending in Photoshop CS4 I wanted to compare this method with my other favorite focus stacking software CombineZ. There are [...]

  8. Gil Hillman Says:

    Thanks for the very clear, helpful explanation.

  9. drkrishi Says:

    Dear Gil Hillman,
    Thank you for your appreciation.
    regards
    Krishna Mohan

  10. Jeremiah Says:

    I followed your steps and it worked well. Thanks! :)

  11. drkrishi Says:

    Jeremiah, Thanks for visiting my site. Great to know that my tutorial was helpful to yu.
    Regards
    Krishna Mohan

  12. Ailsa Says:

    Thank you I found this most helpful

  13. drkrishi Says:

    Thank you for your comments Ailsa
    Regards
    Krishna Mohan

  14. Marie Says:

    Thank you. Thank you. Thank you.

  15. New Focusing Stacking Software! Wow! - Page 2 Says:

    [...] It's great for those "hyperfocal" images when you can't use a small f/stop and for macro shots. Here's a tutorial. __________________ My Flickr D3, G10, 1030SW and a bunch of lenses and other [...]

  16. argo pakkas Says:

    thank you for the tut! it was easily understandable and help a lot! and your photos are amazing!
    argo pakkas

  17. drkrishi Says:

    Dear Argo Pakkas,

    Thanks for compliments. A lovely site you have over at Flickr. Keep visiting

    regards

    Krishna Mohan

  18. Ross Peebles Says:

    I heard about this last night in my local photo club. I had never heard about it before. I googled this morning and found your site. My question: do you follow the same steps in PS5?

  19. drkrishi Says:

    Hi Ross Peebles,
    Thank you for visiting my blog. In Photoshop CS5 too the same procedure works and they have enhanced the detection and blending in CS5. If you need any more help please let me know
    Regards
    Krishna Mohan

  20. Carlos the Awesome Says:

    hey thanks for this tutorial its going to help me alot in my macro

  21. Apilamiento de Documentos para lograr mas Profundidad de Campo. | Fotograma Estudio Says:

    [...] Krishna Mohan tiene Un tutorial muy bueno sobre Focus Stacking usando Photo Shop [...]

  22. Adobe photo shop cs tutorial Says:

    [...] Adobe Photoshop CS4 Auto-Blending Focus Tutorial | Krishna Mohan 6 Mar 2009. The other day, I found a Long horned beetle clinging to the siding of my house. I grabbed my trusty Canon 5D Mark II and a Canon EF 100mm Adobe Photoshop CS4 Auto-Blending Focus Tutorial | Krishna Mohan [...]

  23. Art Says:

    Great tutorial – used it on Antelope Canyon shots! Thanks.

  24. ZeEuge Says:

    Thanks! This is AMAZING!

  25. Erica D. Lawson Says:

    I’ve been using Photoshop CS2 for some time now, really feel like getting the newer CS4. Reading the posts and tutorials makes me even more keen to upgrade. I’m a kind of a noob when it comes to learning a new program. Is there a major difference between the 2 programs, or can I easily start using CS4 as I’ve used CS2 before?

  26. Krishna Mohan Says:

    CS2 to CS5 is quite a bit of improvement. Go for CS5 instead of CS4 as CS6 is due anytime now. User interface hasn’t changed much between CS2 to CS5. So you will love the new interface which is much less daunting than that from CS2. You can also try out Photoshop for 1 month from Adobe website before buying it and then decide on purchase.
    Regards
    Krishna Mohan

  27. Jean Eichenlaub Says:

    Well done explanation. I prefer written over video. Hard to stop the video and think about a step.

  28. Krishna Mohan Says:

    Thank you, Jean Eichenlaub
    Krishna Mohan

Leave a Reply