HDR

Understanding Dynamic Range Of Colors

In real world, there is nothing called real white or real dark. It is only representation of degree of light source intensity and subject's reflectivity. If somebody says something is white, that means light intensity on that subject is maximum and that of black is minimum. But there is no real measurement which is absolute white and which is absolute dark and same thing applies to photography. I think that is the reason there is a term called "dynamic range of colors" and we are going to discuss about it today. When we talk about dynamic range, we are talking about range of brightness. For example dynamic range of our eyes refers to the range of brightness in which we can see. When you go to the room that is so dark you can't see anything, then you are outside of the dynamic range of your eyes. Similarly if you are driving to the direction of the sun, you might have trouble seeing road properly and you are sort of blinded by powerful lights of sun. And that means you are again outside of dynamic range of your eyes; you are experiencing more light than your eyes can handle. Obviously more dynamic range you can perceive, more places you can see. Dynamic range also impacts your perception of color because colors have brightness. So when you can see better range of brightness, you can probably see greater range of colors.

In terms of photography, dynamic range gives the ratio between white and dark subject and describes the ration between maximum and minimum intensity of light (contrast ratio). As you all know that light is measured at each pixel level (a digital camera uses a sensor array of millions or tiny pixels to produce the image) and each of those pixel contains "photosite" which collects and stores photons when exposure begins by pressing shutter release button.  When the exposure is finished, the quantity of photons in each photosite gives various intensity levels of light which is determined by bit depth (0-dark and 255-white for an 8-bit image). If each photosite contains 1024 photons, then the contrast ratio would be 1024:1. Generally speaking, dynamic range of colors is higher for DSLR cameras than the compact point and shoot cameras even if their pixel is same because of the bigger sensor size in DSLR cameras (bigger sensor size means bigger photosites and hence more lights can be captured). Usually in digital cameras, the most common method of representing a dynamic range is f-stop which is power of 2. A contrast ratio or 1024:1 would there be represented as having dynamic range of 10 f-stops.

You should already be familiar with photographic concept, stop of light or f-stop. Every time the light in the scene doubles, we say that light has been increased by one stop. Similarly if the light scene is halved, we say it is decreased by one stop. In photography, f-stops are measure of the lights. If you measure the dynamic range of your eyes that is the range from darkest light to brightest light that you can perceive, you find that your eyes have around 18-24 stops worth of dynamic range. And today's most advanced DSLR camera might have 10-14 stops of dynamic range.

Basically, anytime when there is a big difference between the brightest object and the darkest object in your scene, you have probably gone beyond dynamic range of your camera. If we consider each photosite as a bucket, we can assume photons as a water drops. If the bucket is full, photons will overflow and a photosite having overflown photons means it is saturated for lights and hence defining the camera's white level and no more colors can be represented within that photosite. Below is the picture where I tried to illustrate the point where photosite is overflown by too many photons and hence loosing details of the image.

Dynamic range of colors - bright scene

Dynamic range of colors - bright scene

Similarly, if photosite couldn't capture enough photons, it will loose the contrast in the picture and hence producing only dark side of the image.

Dynamic range of colors - dark scene

Dynamic range of colors - dark scene

With the digital cameras, it's almost impossible to get all the colors in single image specially when there is too much variation of light. That is why the concept of HDR photography is becoming popular in which we combine multiple pictures using different HDR algorithms to create a single HDR image which should give us maximum dynamic range of colors.

Dynamic range of colors - HDR image

Dynamic range of colors - HDR image

In creating a image by using HDR technique, we take multiple shots from the very dark image to the very white image using the Bracketing technique where we get multiple levels of contrast and by combing them into a single picture, we get the maximum possible range of colors.