At a workshop I once taught, an older fellow in the back of the room raised his hand. He said, “I just bought me a new toy and she’s a beauty! But I can’t figure out how to make the hysterectomy work?” Fortunately, my student wasn’t describing a lady of the evening. He was talking about how to pull up the histogram on his new Nikon digital camera. His confusion is not unusual. One of the first things new digital cameras ask about is the histogram…what is it, and how should they use it.
In this article, I will detail the basics of working with histograms.
At its simplest, a histogram is a graphical representation (such as a bar graph) of digital data (brightness values) in a given image. According to Adobe, a histogram:
“[I]llustrates how pixels in an image are distributed by graphing the number of pixels at each color intensity level. This can show you whether the image contains enough detail in the shadows (shown in the left part of the histogram), midtones (shown in the middle), and highlights (shown in the right part) to make a good correction.”
I like to think of a histogram as a very sophisticated light meter. It can help the digital photographer understand if an image is over or underexposed, and it can evaluate the quality of the light, for example, is the image flatly lit or is it a high contrast lighting situation? (Try doing that with your father’s old Soligar meter!)
Histograms illustrate how 256 possible levels of brightness are distributed in a digital image. The histogram’s horizontal axis represents the range of brightness from 0 (the shadows) on the left to 255 (the highlights) on the right. Think of it as a football field with 256 yard markers (0 to 255) upon which the team can stack pixels of the same brightness. Since these are the only values that can be captured by the camera, the horizontal line also represents the camera’s maximum potential dynamic range. In other words, the horizontal line (from left to right) represents increasing brightness in your image. The vertical axis represents the number of pixels that have one of the 256 brightness values. The higher the line goes (coming up from the horizontal axis,) the more pixels there are at that level of brightness. In other words, the vertical line represents an increasing amount of digital information from bottom to top.
Generally, if all you learn from this section of the article is that the histogram helps you to understand the tonal range of your image, you are ready to move on.
USING THE HISTOGRAM
Histograms come into play in two places: in capture and in image processing. If you use a digital camera, it probably has a menu or command function that allows you to see a histogram for each image that has been captured in the camera’s memory. For example, on many digital cameras, you get to the histogram by hitting the INFO button.
By evaluating the histogram in the field, you can determine whether or not you captured enough information to get a good image in post. For instance, if you look at the histogram and see that its graph has moved to the far right and beyond, it is likely that you have blown out the highlights and need to increase your shutter speed or close down your aperture to let in less light. With practice, you can learn to trust the histogram better than trusting the image displayed on your camera’s LCD screen.
You can also get a histogram after the capture on the post side of your digital workflow. If you scan film, most scanning software allows the display of image data including the histogram.
One very technical point to remember is that there is a slight difference in the way your digital camera and your computer will represent the histogram. These differences are accentuated if you capture in 16-bit rather than 8-bit mode and then transfer the image to Aperture or Photoshop using a linear mode. This is all techno-speak that leads us to the following point. After you have a digital image and you have moved it into post, that histogram more closely represents the true digital image than the one you saw on the back of your camera.
Just as a pilot must learn to trust his instruments, photographers can learn to trust the exposure information contained in histograms. If you know what you want to photograph, how you want it to look and what the histogram should look like when you have accomplished your goal, you will walk away with a winner every time.
I use histograms to determine if there is enough detail in the highlights, midtones and shadows of my image. As long as there is enough data to work with, I can correct the image in post to look great on paper or on the screen.
To get proper correction in post, you want to understand your image’s “black point” and “white point.” The black point is the darkest portion of your image and the white point is the brightest highlight of your image. (This is not the blackest black or whitest white your camera can record but the blackest black and the whitest white in a particular photograph.) The information between the black point and the white point is known as the dynamic (or tonal) range of your photograph.
For the purpose of this article, I’ll use Photoshop as an example. The Levels dialog box in Photoshop provides five paces where you can adjust the distribution of brightness in your image. These are represented by small triangles. There are three on the input side of the dialog box and two on the output side of the dialog box.
Most photographers use the three triangles located in the input side of the dialog box (located just below the histogram.) Here’s how they work. Dragging the left (all black) triangle to the right darkens the image. Dragging the right (clear) triangle to the left lightens the image. Dragging the middle triangle (gray) to the left or right lightens or darkens the image.
There are two additional triangles in the output side of the dialog box. They have nearly the opposite effect of the triangles located above. Dragging the left (all black) triangle to the right lightens the image shadows. Dragging the right (clear) triangle to the left darkens the image highlights.
CORRECTING THE IMAGE USING THE HISTOGRAM
Establishing a white and black point by dragging the image triangles is where a great portion of your color and contrast range correction will take place in Photoshop.
You can set the highlights and shadows in an image by moving the input sliders on both ends of the Levels histogram. This correction adjusts the affected pixels in each channel, increasing the tonal range of the image. The corresponding pixels in the other channels are adjusted proportionately to avoid altering the color balance.
You can also use the middle Input slider to change the intensity values of the middle range of gray tones without dramatically altering the highlights and shadows. While there are other slightly more precise ways to accomplish this in Photoshop, this method works well for 99% of images.
Go to IMAGE>ADJUSTMENTS>LEVELS and you will see the histogram for your picture appear on the screen. Drag the black and white input levels sliders to the edge of the first group of pixels on either end of the histogram. You can also enter values directly into the first and third input levels text boxes. Drag the black and white output levels sliders to define new shadow and highlight values. You can also enter values directly in the output levels text boxes.
You can automate this process in Photoshop by using the AUTO LEVELS command, but this is usually not the best way to make the correction.
You can refine this adjustment process by making a levels correction to each of the RED, GREEN and BLUE channels individually rather than to the combined RGB channel.
Once you have made your changes, you may see some COMBING. This effect occurs when you adjust levels and the histogram appears to have teeth like a hair comb. In most cases, this is not a problem unless you start with a very low pixel count to begin with.
Histograms are a basic component of digital imaging. Understanding their value and how they work will benefit even those photographers who intend to just send their images to the lab rather than print or upload them on their own.
This site is made possible by sponsorship from:
Latest posts by Scott Bourne (see all)
- Is The Hometown Camera Store Dead? - January 15, 2017
- Olympus M. Zukio Digital ED 7-14mmf/2.8 Pro Lens First Look - January 10, 2017
- New Year’s Resolution – Upping My Commitment To Photography - December 31, 2016