Monday, 23 January 2017

exposure - How and why do you use an image histogram?


I realize that an image histogram is a graphical display of an images tonal distribution (i.e. horizontal darks to lights, vertical pixel distribution), but how does one really use it and why? I mean, can't you determine everything you need just by looking at the image?



Answer



While there may not be a "right" answer to this question, there are "correct" answers. A histogram is a powerful tool, and when you understand how to use it effectively, it can greatly help your photography.


As you mentioned, a histogram is a representation of tonal range and distribution in a photo. The basic mechanics are as such:




  1. A histogram represents tonal range from left to right, with blacks and shades to the left, progressing through midtones in the middle, to highlights on the right.

  2. The "volume" of any given tone is represented by the height of the vertical line that represents that tone.

    • A vertical line at the very left end is indicative of the volume of total black tones

    • A vertical line at the very right end is indicative of the volume of total highlight tones

    • A vertical line in the very center is indicative of the volume of 18% gray tones



  3. The tones for an image are taken from the intensity of each pixel (chroma, or hue, is ignored, and only brightness/lightness/luminosity is measured)


    • The total number of tones in an image is dependent upon the bit depth of the image

    • An 8-bpp (24-bit) image has a total of 256 distinct tones

    • A 12-bpp (36-bit) RAW image has a total of 4,096 distinct tones

    • A 14-bpp (42-bit) RAW image has a total of 16,384 distinct tones

    • A 16-bpp (48-bit) RAW image has a total of 65,536 distinct tones

    • A 32-bpp (96-bit) HDR image is effectively able to represent infinite tonal range



  4. There is no technical limit to the height of a histogram.


  5. Unless you have a very low-bit image, a single histogram is generally incapable of representing every single individual tone in an image, so each vertical line tends to represent a small range of similar tones.

  6. A color histogram can represent a much greater range of information than a pure tonal histogram in the same space.


(As a real (float) number, the values of a 32 bpp HDR image range from 1.0 x 10^-37 through 1.0 x 10^38. In more real-world numbers, tonal range from black, through very dim starlight (0.00001), through indoor lighting (1-10), through the sunlit outdoors (1,000,000), to the brightness of the sun itself (100,000,000) and well beyond. All those values can be represented in a single HDR image.)


Given these facts about a histogram, there is a wide variety of information you can gleen from one:



Contrast is the measure of difference between the brightest tones and the darkest tones. The more range a histogram covers between its left and right edges, the greater the contrast of an image:




  • Low contrast:

    Low Contrast




  • High contrast:
    High Contrast





Key is the rough measure of brightness in an image, with high-key being brighter, and low-key being darker.





  • If the histogram is bunched up in the highlights, you have a high-key image: High Key




  • If the histogram is bunched up in the shades and shadows, you have a low-key image: Low Key




  • Obviously, if the histogram is evenly distributes, you get a balanced exposure: Balanced Exposure





(A histogram riding up the right-hand side of the histogram probably indicates overexposure – clipped highlights. A histogram riding up the left-hand side of the histogram probably indicates underexposure – blocked shadows.)



When using a colored histogram, the convergence of red, green, and blue peaks is an indication of white balance. In particular, the offset of major blue peaks can be a strong indicator of the warmth or coolness of a photo:



  • Blue peaks shifted towards the right indicate a cooler tone image Cool White Balance

  • Blue peaks shifted towards the left indicate a warmer tone image Warm White Balance

  • Blue peaks within close proximity to red and yellow peaks indicates a slightly warm image


In a properly white balanced image, blue is usually a little right of red and yellow peaks.




The balance and height of peaks in a histogram is an indication of tonal range and tonal balance. Parts of the histogram that are very low (valleys) indicate very low volume for those tones. Parts of the histogram that are very high (peaks) indicate very high volume for those tones.



A basic colored histogram will often show gray, red, blue, and green. A more advanced colored histogram may also show yellow, magenta, cyan.


Colored peaks are an indication of the volume of those given primary colors, the horizontal position of a colored peak is an indication of the tone of colors of that particular primary or primaries.


Gray indicates a balance of primary colors at those tones. Off-primary color peaks (or partial height lines), such as yellow, magenta, and cyan, indicate a blend of two primary colors at those tones.




EDIT


As mentioned by Jordan H., there is a trick called "expose to the right" (or ETTR) that can be useful to get you the optimal RAW data. When shooting a scene, particularly those that have a broad range of contrast that may be on the border of, or possibly slightly beyond, the 5-6 stop dynamic range of a digital camera, capturing enough tonal range in the shadows can be difficult.


This is due to the the limitations of most current digital sensors, and how they are more sensitive to highlights than shadows. "Exposing to the Right", which is a technique where you slightly overexpose your shots by 1/3 to 1/2 of a stop (which, in turn, shifts your histogram to the right...toward highlights), can help mitigate these limitations.


Exposing to the right can also help alleviate noise problems in the shadier parts of your images. It should be noted that exposing to the right requires that you use RAW format, as only with raw are you saving enough information to correct your overexposure during post-processing to bring your image back into normal range. The benefit of this technique is that it allows you to capture detail that would otherwise be lost, without the need to resort to ND grad filters or other more extreme measures.



This guideline is just that, a guideline. With newer camera sensors, dynamic range is improving, and capturing a greater range of contrast in a scene with a single shot is easier. However, even as digital sensor dynamic range improves, there will always be times when we need to shoot "on the edge" or what is possible, and tricks like shooting to the right will always be useful.


No comments:

Post a Comment

Why is the front element of a telephoto lens larger than a wide angle lens?

A wide angle lens has a wide angle of view, therefore it would make sense that the front of the lens would also be wide. A telephoto lens ha...