Posts Tagged ‘Adobe Lightroom’

Image Sequence Video Tutorial

August 4th, 2011
by Krishna Mohan

As promised in my last blog I am showing you how I converted the image sequence into the video. When I took the photos of that Oriental magpie Robin I was not planning to do the image sequence. Ideally a tripod mounted stationary camera would have been excellent for such an image sequence. If you plan to do time lapse series then tripod mounting is a must. The following method works well with time lapse sequences too.

Since I had the photos handheld I needed to align the main branch where it was sitting in perfect alignment. So after processing all Raw photos in Adobe Lightroom I chose the right click menu Edit in -> Open as layers in Photoshop.

Open as layers in Photoshop

Open as layers in Photoshop

This will export the photos to Adobe Photoshop and arranges all the 15 photos as layers of a single file. To align images this is ideal method.

Photoshop with photos exported as layers

Photoshop with photos exported as layers

I chose all the layers in Adobe Photoshop and from the Edit menu -> Auto Align Layers.

Auto Align Layers

Auto Align Layers

Under the Auto Align Layers options dialog box I chose both vignette removal as well as geometric distortion under the lens correction option. This may not be necessary if you have kept the aperture constant.

Auto Align Layers options

Auto Align Layers options

Now Adobe Photoshop will churn away depending on the speed of your machine aligning your images.

Aligning Layers

Aligning Layers

Aligning Layers

Aligning Layers

After a short wait you will be presented with perfectly aligned images. As you can see the edges of all the images will not be aligned.

Perfectly aligned layers

Perfectly aligned layers

Next you need to crop all the images so that they will be of the same size and will not have transparent borders. This is accomplished using crop tool in Adobe Photoshop.

Cropping the edges

Cropping the edges

Now we will explore a hidden gem in Adobe Photoshop. If you plan to export all the layers as separate files you need to go to File -> Scripts -> Export Layers to Files option.

Scripts to export layers to files

Scripts to export layers to files

Now you will get 15 jpeg files out those 15 layers which were aligned perfectly using auto-align option. You can re-size these jpeg files to the final size of the video you want. I also added the matte frame and copyright info I usually add to all my photos. I use ImageMagick to accomplish this task as a batch file from command line.

Layers exported as JPEG files

Layers exported as JPEG files

Now since you have 15 perfectly aligned images you can started porting them to video. If you already had the aligned images by using the tripod while shooting you will start from this point onwards. Even though many would like to use Apple Quicktime Pro for creating video, my preferred software is ImageJ. ImageJ is a powerful image analysis program that was created at the National Institutes of Health. ImageJ is open-source program written in Java, which allows it to run on Linux, Mac OS X and Windows, in both 32-bit and 64-bit modes. You may download this program from the source (http://rsb.info.nih.gov/ij/). After installing ImageJ choose File -> Import -> Image Sequence from its menu.

ImageJ to import files as Image sequence

ImageJ to import files as Image sequence

Once you point it out to the fist file in the image sequence ImmageJ will import all the 15 files and starts processing them.

Opening the Image sequence

Opening the Image sequence

Following is the dialog about sequence options. You can leave it default like as I did or you can change them as you wish.

Sequence options

Sequence options

Next you will see the image sequences presented as video for you to watch in a inbuilt ImageJ player.

Imported images as video

Imported images as video

To save them as video file you need to choose File -> Save as -> AVI.

Export as AVI

Export as AVI

Next dialog will give you frame rate setting option. As I wanted file to have 1 frame per second option I chose such a slow frame rate. For time lapse sequences you need to choose faster frame rates.

AVI frame rate setting

AVI frame rate setting

Once you choose the name for the AVI files all your image sequences will be saved as a single AVI file.

Save as AVI

Save as AVI

I exported this AVI file to You Tube server so that it hosted for all to enjoy. Hope this tutorial will be useful for all the image sequence & time lapse enthusiasts who wants to make it into a video.

Tags: , , , , , , , , , , ,
Posted in Lightroom, Photography, Photoshop, Tutorial | Comments (2)

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)