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.
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.
In Photoshop choose Select > All Layers.
Then choose Edit > Auto-Align Layers. The Auto-Align Layers dialog box opens.
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.
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.
With all Layers still selected choose Edit > Auto-Blend Layers.
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.
When you turn on the layers, you can see that the images now contain deep focus with all the points in focus.
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.


























![Validate my RSS feed [Valid RSS]](http://www.drkrishi.com/wp-content/themes/layers/images/valid-rss.png)

