High Dynamic Range Imagery (part 1) — What the Heck Is It?

So, you’ve heard some folks talk about “high-dynamic range imagery” or HDR, and you think you sort of understand it, or not really?  Well then, I hope to de-mystify it for you in a series of blogs.

In my previous blog, I talked (or more like bitched) about why cameras suck; and one of my reasons was that they lacked sufficient dynamic range in capturing light.

“…, let’s talk about dynamic range.  This is the whole problem of the images above.  We’re only stuck with 0-255 per RGB channels.  This means that we need to describe the brightness of what we see — from dark shadows to sunlight — within the integer range of 0 to 255.  Even RAWs don’t cover it since the dynamic range needed to describe what we see could be 0-1,000,000.  Yes, cameras suck.  There are high-dynamic range imagery, and I will talk more about that soon.”

As shown above, there are series of photos that describe this problem.  In the beach shot 1, you see that the exposure was very long, so most pixels are washed out, but you can still see some contrast in the dark parts of the palm trees as well as the dark shadows on the sand ridges.

As the series of images get darker, e.g. beach shot 2 and beach shot 3, you can see the scenery much better, but the bright area around the sun is still too washed out.  By beach shot 6, we can see some outline of the sun better but everything else is now too dark.

Somewhere in this series of variously-exposed images lies the “right” answer for the composite image — this is the dynamic range problem.  Our eyes can see much better contrast than any of these camera shots (also because we can dynamically adapt better too, but that’s some other blog).  You can imagine manually photoshopping these images to get the solution image you want.  A more automated way is to create a single high-dynamic range image from this series of images, then tone map it.

Putting aside the technical lingo bullsh!t, I hope I’ve convinced you that there is a way to combine these images somehow to get the final image you want. (And I won’t bore you with the tech details either — if you must know, let me know pls.)

There are nice software products to do just this: Photoshop, Photomatix, and Enfuse.  There are more, but these are the ones I like.  (If you have your favorite, please comment and share!)

Beach shot "solution" using Photoshop

Beach shot "combined solution" using Photoshop

Beach shot "combined solution" using Photomatix

Beach shot "combined solution" using Photomatix

I’m not showing Enfuse just yet since it really isn’t HDR.  But I’m gonna stop right here for now, since the blog is getting too long.  I will talk more about Enfuse and more of HDRI-related issues in part 2 of this series.

Advertisement

About Mok Oh

Chief Scientist, PayPal View all posts by Mok Oh

13 Responses to “High Dynamic Range Imagery (part 1) — What the Heck Is It?”

  • Eugene

    Nice writeup. Is it just me, or do all Photomatix results look way overdone? The results clearly preserve the detail from all the exposures, but they don’t look at all like how my eyes would respond to the actual scene.

    Yes, I know that photography isn’t always about perfectly capturing reality. But usually there’s a delicate balance between capturing reality and improving aesthetics. In my opinion, the Photomatix algorithm achieves neither.

    Case in point: http://www.flickr.com/photos/msc72/423277477/

    Barf. The only thing is missing is Photoshop lens flare.

  • Robyn Palescandolo

    I agree with Mok, single-exposure images still need quite a bit of post-processing to look their best. Having worked extensively over the past 4 years with HDRI, I have learned that the best solution (to date) lies in the combination of exposures and other techniques.

    If you tone map an HDRI file well in Photoshop, you will get a wonderful and realistic starting point for your image. Overlay that with a transparent tone mapping from Photomatix, and you will get a beautiful range of colors and tonality. You can see a hint of this in the Yellows of the sky and the crystal blue water of the Photomatix image above. Occasionally, you will need to manually mask in a window that is over-exposed, or a distant room that is just too dark. Also, you may find yourself running into situations where there are multiple light sources, requiring an HDRI file with both multiple exposures and multiple white balances.

    Phew.

    I haven’t even mentioned RAW format yet! If you have not used the proper exposures or white balances when taking the photos, even HDRI has issues. This is where RAW format can be helpful. Photoshop has a wonderful dialogue where you can adjust all of the original camera settings very effectively.

    The only thing that I haven’t seen yet is a way to correct focus.

    So, this can get quite technical. Going back to one of Mok’s older posts, cameras still have a long way to go!

  • HappyDuck

    I think one of the fundamental issues concerning fidelity of dynamic range and static panoramas is the focal point. A panorama strives to have “omnifocus” <– made up word. A surveying human eye always has a specific focal point, constantly adapting, such as "re-scaling" dynamic range depending on focal point (like trying to make out the details of an underexposed area of the panorama). For high fidelity immersion, we need to get into focal point tracking with visuals that adapt to that. The other option is to bring the entire static visual to a point where it maxes out perceived dynamic range, which I guess is one of the impetus behind HDR imaging. The problem with the latter approach is that realism is compromised because it appears surreal. I personally find HDR to be an acceptable compromise though. :)

  • Min Heo

    I’ve tried several times, but tone mapping is too difficult for me. The images I made was not good. :-( I am looking forward to next post.

  • D Day

    Nice article on HDR. I’ve been wanting to try to create some HDR images, but lack the tools and the time.

    What criteria do you use to find “..the “right” answer for the composite image..”? Is this more of an artistic answer or a technical one?

    • Mok Oh

      Good question. For me, it’s more artistic than technical, but can be argued either way.

      One way to define what’s “good” could be trying to replicate what we see. But even that depends on people’s eyes, shapes, acuity, age, etc.

      But there are folks like Ansel Adams who used hard-core dodging/burning (manually without photoshop! yikes!) who created surreal and awesome sh!t. Pure visual genius. Almost impossible to quantify this..

    • Mok Oh

      BTW, good to connect again, DDay!

  • HDR Part 2: Exposure Fusion « All Things Visual

    [...] This blog is the second part of the previous blog on high dynamic range imagery. [...]

  • jason

    I think photo number three is the most pleasing,,, the photomatix one is barfy

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.