Sandeep 's World >> Thru' The Lens
« March 2009 »
S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Categories
Birds 'n Animals
Cities 'n Architecture
Digital Room
Lights @ Night
Macro World
Nature 'n Landscapes
People 'n Portraits
The Abstracts
Travel 'n Living
Vintage India





from Rajesh!

Google AdSense

Saturday, 28 March 2009
HDR image from Golden Temple, Bylakuppe
Category: Digital Room
I'd been trying to do High Dynamic Range (HDR) merged pictures for a while now, but was hardly happy with the sharpness I got. This time, @ Golden Temple of Namdroling Monastery, Bylakuppe in Coorg / Kodagu (during a Nagarhole / Kodagu trip), I thought the pictures were reasonably sharp after the HDR merge:

To get an idea of the lighting situation inside the temple complex, check out the non-HDR images in an earlier post :Golden Temple @ Bylakuppe, from a Dec 2007 visit to the same place. In that picture, the idols are too bright and the remaining portions are dark. This is indeed an ideal situation to try out the HDR technique.

This HDR is created from three pictures, taken using the AEB settings in Canon EOS 400D. I set the AEB to +/- 2EV in Av mode, f/8, ISO-100 for three images, 1/3s for the base image, 1/13s for the dark image and 1.3s for the bright image. The camera was mounted in a tripod with the Canon EF-s 18-55mm f/3.5-5.6 kit lens @ 31mm.

Dynamic Range is a measure of the camera's capability to collect details from dark as well as bright regions. When the camera's dynamic range is not sufficient enough for a scene, one may use more than one frames with different exposures and merge them using software for a higher dynamic range.

Usually three shots (mid-exposure, under-exposure and over-exposure) are taken but more than three is also possible. All shots should have exactly the same frame but different exposure values. Its advisable to use a tripod for this, since any non-aligment of frames will spoil the merge result. Also, this is possible only for frames with little or no movement. Canon cameras have a setting called Automatic Exposure Bracketing (AEB) which will help to take three different shots with different exposures.

The basic idea of merging is to use the intensity of the image itself as a mask for merging. We should use the mid-exposure image as base and add brighter portions from the under-exposed image as well as the darker portions of the over-exposed image. I have used GIMP to do this but the procedure should be similar in all softwares.

Let me outline the procedure of merging three different exposure pictures for a HDR result in GIMP:

  1. Start with the normal exposure picture (lets call it the base image) and open the Layers Dialogue (Ctrl-L).
  2. Create a new layer (lets name it the 'Dark Layer') and select that layer.
  3. Open the under-exposed picture. Select all (Ctrl-A) and copy (Ctrl-C).
  4. Go back to the base image and paste (Ctrl-V). Go to the layer's dialogue, right click on the pasted layer and 'Anchor Layer'. The pasted layer should merge with the 'Dark Layer'.
  5. Right click on the 'Dark Layer' and 'Add Layer Mask' (default settings will do). Keep the selection on 'Dark Layer'.
  6. Go back to under-exposed picture and convert it to gray scale (Image -> Mode -> Grayscale). Now select all (Ctrl-A) and copy (Ctrl-C).
  7. Go back to the base image and paste (Ctrl-V). Go to the layer's dialogue, right click the pasted layer and 'Anchor Layer'. The pasted layer should now be the layer mask for the 'Dark Layer'.
  8. Right click on the 'Dark Layer' and 'Apply Layer Mask'.
  9. Right click on the 'Dark Layer' and 'Merge Down'.
  10. Create another layer (lets call it 'Bright Layer') and selct that layer.
  11. Open the over-exposed picture, select all (Ctrl-A) and copy (Ctrl-C).
  12. Go back to the base image and paste (Ctrl-V).
  13. Go to the layers dialogue, right click on the pasted layer and 'Anchor Layer'. The pasted layer should now be the 'Bright Layer'.
  14. Right click on the 'Bright Layer' and 'Add Layer Mask' (default settings will do). Keep the selection on 'Bright Layer'.
  15. Go back to over-exposed picture and convert it to gray scale (Image -> Mode -> Grayscale). We need to invert the image. For this open the curves dialogue (Colors -> Curves), move the bottom-left point to top-left and top-right point to botom-right. Save this, select all (Ctrl-A) and copy (Ctrl-C).
  16. Go back to the base image and paste (Ctrl-V). Go to the layer's dialogue, right click the pasted layer and 'Anchor Layer'. The pasted layer should now be the layer mask for the 'Bright Layer'.
  17. Right click on the 'Bright Layer' and 'Apply Layer Mask'.
  18. Right click on the 'Bright Layer' and 'Merge Down'.

The HDR picture is ready. This procedure may be extended to merge more than three pictures as well. To control the layer mask, one can adjust the color curves or edit the gray scale image in step 6 and 15.


Posted by usandeep at 12:01 AM
Updated: Friday, 15 May 2009 4:07 PM
Post Comment | View Comments (9) | Permalink

Friday, 10 April 2009 - 3:59 PM

Name: "Anoop"
Home Page: http://rusty.in

Good one, nice effect too.

.. and for a change I see that someone has taken the picture in different exposures and merged them, unlike some photoshop tutorial sites that take one single photograph, process it and call it HDR!

 

Friday, 10 April 2009 - 11:48 PM

Name: "Dhanya"
Home Page: http://myphotoattempts.blogspot.com

I also want to try HDR n was googling for the steps. Thanks for the steps :)

Saturday, 11 April 2009 - 6:07 AM

Name: "SrideviR"

Now that is a neat photography lesson. I will pay you the fees when I fully understand it.

In the picture, if all that glittering is gold then we need a major force out there to guard it. Anyways, the evident rich culture and artistic expressions deserve a low bow.

Sunday, 12 April 2009 - 1:18 AM

Name: "Cuckoo"
Home Page: http://cuckooscosmos.com

This is quite an informative post. Thanks for sharing.

Tuesday, 14 April 2009 - 3:12 PM

Name: "Thomas"
Home Page: http://walkthewilderness.net

Nice HDR attempt, given the poor lighting conditions your result is amazing.

 And it is nice to know that you are a GIMP user too.

Tuesday, 14 April 2009 - 10:28 PM

Name: "Rajesh"
Home Page: http://myindiantravel.blogspot.com/

The snaps are really good. Even I had been to Bylukuppe last year and it is really nice and peacefull place. Had clicked some snaps and I shall update my blog near future.

The details on HDR will really help.

Friday, 17 April 2009 - 10:39 AM

Name: "Shilpa"
Home Page: http://shilpaprabhu.blogspot.com

The pictures are superb.

Reminds me, one more time, I have postponed the Coorg trip for a very long time. I must hit the road, at the soonest.

Friday, 17 April 2009 - 11:45 AM

Name: "sandeep"
Home Page: http://usandeep.com/

Anoop: Thnx and welcome here. What u said makes sense if u r using raw mode and more bits per pixels (guess its available with some full frame and medium / large format cameras). I dont use raw mode, my camera is has a normal 14-bit / color. In any case, GIMP doesnt support more than 8 bits per color. So, this is my only option :(

Dhanya: All the best :)

Sridevi: Yup ... its all gold and the place is indeed an architectural marvel. The lessons are available all over internet and I'l take a smile as fees :)

Cuckoo: Glad u found it useful. Thnx.

Thomas: I'd been a GIMP user even before I baught my first camera (film, P&S that is) :) It has awesome support for generating logos / web themes ... etc and I'd been a gr8 fan for yrs. Recently figuring out the post processing side of GIMP :)

Rajesh: This is actually my second visit to Bylakuppe and I still wasnt hapy with the time I got :) Looking fwd for ur pictures

Shilpa: Do hit the road to Coorg ... and write about it too :)

Sunday, 19 April 2009 - 9:55 AM

Name: "Mridula"
Home Page: http://www.gonomad.com/traveltalesfromindia/

I too have been to this place. And I too will try to implement this technique when I understand it more!

View Latest Entries

© 2008 Sandeep Unnimadhavan