Browse > Home / Featured, Tips and Tricks / Reading Histograms

| Subcribe via RSS

Reading Histograms

February 5th, 2008 Posted in Featured, Tips and Tricks

When I bought my first SLR (a Canon Digital Rebel XTi), I really didn’t understand anything about exposure. I simply took photos of things that I thought would look cool, I’d check the image on the LCD screen and, if it looked good, I moved on to my next shot. I knew enough to know that if the photo looked too bright, I needed less exposure (a smaller aperture, a faster shutter speed, or a lower ISO) or if the photo looked too dark I needed more exposure (a wider aperture, slower shutter speed, or higher ISO). But if the image on the LCD screen looked “good”, I figured there was nothing else I could do. Of course, this was a lot harder on very bright days. I would find myself trying to shade the screen as best as I could with my body or my hand, while squinting my eyes to look, ultimately getting frustrated at not being able to tell whether my shot had turned out like I had hoped. Finally, I’d get home, view the images on my computer and find out that part of the “good” image I thought I took was too underexposed or overexposed in one particular area that I didn’t notice when viewing it on the back of the camera. Now what?

I only had one of two options: Go back and re-shoot or try to fix the under/overexposure with software. It wasn’t often that I’d go and re-shoot because of one bad image (I tend to be lazy) so I’d start editing the photo. Often, this would work out OK but it bothered me that, as a new photographer, I was relying heavily on post-processing and not getting the image I wanted from the camera. What could I do?

This is where histograms come in.




What is a histogram?

A histogram is a graph showing the distribution of colors or shades of a color in an image. Most often, in a single histogram, this color is gray. Below is a simple graphical illustration of how the shades of gray are measured across a histogram:


Histogram Demo

From the sample histogram above, we see that a spike in our histogram on the left side indicates a large number of pixels that are dark or black (a possibly underexposed photo), while a spike on the right side indicates a large number of pixels are light or white (a possibly overexposed photo). By this reasoning, a histogram that appears to be somewhat evenly distributed across all shades is likely to be properly exposed.

In Practice

How does this translate to actual photos? Let’s take a look below…

Our dog, Hunter, was taking a nap behind my chair so I decided to use him as a model. I set the Automatic Exposure Bracketing on my 5D to +/-2ev and took three shots. The first one, below, is at -2.0ev and, thus, underexposed:


Hunter Underexposed

Obviously, you don’t need a histogram to tell you this photo is a little underexposed but bear with me. Let’s look at the histogram from the camera:


Histogram Underexposed

You can immediately tell from the histogram above that there are a huge number of dark or black pixels in the image. This tells us immediately that the image is probably underexposed (and we didn’t even have to shield the LCD with our hand!).

Now, let’s look at the photo taken at +2.0ev:


Hunter Overexposed

Too bright, right? Let’s look at the histogram to confirm:


Histogram Overexposed

Above, we see a pronounced spike on the right side of the histogram which tells us this photo is definitely overexposed. Look at the small bump, though, on the left/dark side. What’s that from? You’re right! It’s mostly from the chair behind Hunter. It’s one of the only dark things in the photo.

Finally, let’s take a look at a properly exposed photo… Properly exposed, according to the camera’s evaluative metering anyway. See my post on light metering for more info on how the camera isn’t always right.


Hunter Proper Exposure

That looks a lot better than the previous two, doesn’t it? Now, how about that histogram?


Histogram Proper Exposure

You can see from the histogram that we might still be a little too white, but the distribution is much wider than in the previous two histograms and the spikes that we do see aren’t nearly as pronounced or severe. This lets me know that my exposure is just about right… or at least as good as it’s going to get without some change in lighting, metering, or post-processing.




So how does this help?

You can just look at the images and tell they’re over- or underexposed, right? Well, in most cases, yes. But, if you recall from a few days ago when PopPhoto reviewed one of my photos, they only gave me three stars out of five. Why? Well, let’s regurgitate a small block:

“To improve on this shot a shorter exposure should be used to prevent the highlights from blowing out. The LCD can be misleading so next time take a few shots with different exposure times or try bracketing your exposures giving you an option to merge them.” (link)

As a reminder, the shot is below:


Sixth Street Bridge

Histogram BridgeOverall, on the LCD screen, I thought the shot looked pretty darn good. Seeing that the bridge structure was blown out on a tiny 2.5-inch LCD isn’t easy, especially when the bridge is that shade of yellow. Of course, at the time, I had only had my first DSLR for about a week or two and, consequently, I knew nothing about histograms. If you look at the histogram to the right, though, you will see a pretty even distribution except for the spikes at the left (too dark) and right (too bright). It’s not extremely obvious but, had I known how to read a histogram, I might have tried another shot with a little shorter exposure.

A few more examples

Here we have a very colorful photo of the National Mall:


Pillowy Sky Large

With this much color and no obvious bright or dark spots, we might expect a histogram with a wider distribution of shades:


Histogram Mall

One more image-histogram pair:


Cactus


Histogram Cactus

Conclusion

Now you know how to read your camera’s histogram. No more will you have to worry about missing something in the image preview on your camera’s LCD, you can just read the histogram. Of course, it must be said that, just like any “rule” of photography, you don’t have to have proper exposure every time. You’re the photographer, so you decide. For example, if you’re doing a black and white portrait, you may want to blow out the white background. Or, if you’re spot metering on one particular object, the rest of the photo might be either underexposed or overexposed. Either way, as long as you know you got the shot you wanted, that’s all that matters.

Feel free to leave comments and suggestions in the comments below… But be gentle. ;-)

UPDATE: Be sure to see Niels Henriksen’s comment below for some more information on color histograms and digital cameras. Great stuff! Also, please check out Niels’ blog! It has some really great info!

Other Histogram Resources

Popularity: 28% [?]

| Tags: , ,


Buy my photos!




20 Responses to “Reading Histograms”

  1. MY Camera World Says:

    Shawn:
    A good written article describing and showing with good examples how the histogram responds to actual images.

    A few general comments about histograms and digital cameras.

    The histogram displays the luminance (greater emphasis on green channel) information and as such my not accurately, but very close, indicate if either of the RGB channels are clipped.

    If your camera also displays the RGB individual channels then I suggest that for very bright and saturated colour that you also check the RGB channels to see if any one is clipped.

    If you are shooting in camera RAW mode then you can recover a little of the clipped info with the exposure slide setting. This does not work if you are RGB. The reason is that in RAW you have 12 or 14 bits of data and RGB just 8 and therefore more finer increments in the highest highlights that the LCD display cannot display (rounding)

    The digital camera is very similar to a positive in film and as such the exposure should at to the max possible which means expose-to-the-right., but no clipping.

    This will permit you to increase and dark shadow with less prevalence of noise.

    Niels Henriksen


  2. shawn Says:

    Hi Niels!

    Thanks for the excellent info! It is very much appreciated!

    Shawn


  3. Saturday Links Fever [2008-02-09] at All Day I Dream About Photography Says:

    [...] Reading Histograms SDuffyPhotography A nice tutorial from my new friend Shawn shedding the light on histograms and how to read them ! [...]


  4. Link Roundup 02-09-2008 Says:

    [...] Reading Histograms SDuffyPhotography.blog A guide to reading a histogram and using that knowledge to take better photos. [...]


  5. Citirea histogramelor « Resurse Foto Says:

    [...] multe resurse: Reading Histograms / Understanding [...]


  6. Links - February 15, 2008 « Photo Notes: Photography by Patty Hankins and Bill Lawrence Says:

    [...] on Reading Histograms from [...]


  7. (Photo)Blogging Tips Says:

    [...] but I never bothered to sit down and learn it. So I dug into it a bit, learned how to do it, and wrote about it. That article is now one of my most popular posts with more external links to it than anything else [...]


  8. Jen Weaver Says:

    Thanks for the great information. I appreciate it and I will be sure to share your page with others on my photography blog.


  9. shawn Says:

    Thanks Jen! I’m glad you found it useful!


  10. (Photo)Blogging Tips: Part Two Says:

    [...] steal content. Ever. Just use it to find some new topics. One of my most popular articles, Reading Histograms certainly isn’t anything new. There are definitely other articles that discuss it at great [...]


  11. Jim Hoerricks Says:

    Nice work on the camera’s histogram. So many ignore this valuable tool.

    Jim Hoerricks
    Forensic Photoshop


  12. shawn Says:

    Thanks Jim! Indeed, I find myself looking at photos differently now that I’ve begun using histograms.


  13. Chris Short Says:

    Thanks for this article. I had no idea what the hell I was looking at in the histogram view. I’ll be able to see exactly what I did now.


  14. shawn Says:

    You’re welcome Chris! I’m glad the article was helpful. I definitely look at my photos a bit differently now that I’ve learned how to use the histogram.

    Thanks!


  15. gray Says:

    i’ve always wanted to learn more about histograms and how to properly read them. thanks


  16. shawn Says:

    Thanks gray! I’m glad it was useful!


  17. Keith Says:

    I have tried reading other websites tutorials and explainations of the histogram but did no get it – I mean what do I need a histogram for when the photo is displayed on my LCD. You have explained this very well indeed and I thank you.


  18. shawn Says:

    Thanks Keith! I’m glad I was able to help!


  19. Wim Moreels Says:

    hello from Belgium

    I recently bought the Canon 400d (Xti).
    My pictures are not really sharp.

    I saw pictures taken by a friend, has a Nikon D40 with kit lens, also a “starters kit”

    I know the Canon kit lenses (18-55, 55-200) are not so good, but I do not plan to buy expensive new lenses in the near future.
    I know about ISO, shutter speed, blur, … so there must be another reason my pictures are not really sharp.

    Thanks for advice, I would really appreciate!

    Wimm kind regards


  20. shawn Says:

    Hello Wim! I shot with a Canon 400D for about six months before I upgraded to the 5D. I was quite happy with it though I always sharpened my photos a bit digitally. Expensive lenses do help but I can understand not wanting to drop that much money on a lens. I would recommend sharpening them a bit digitally after you take them, perhaps.

    Thanks for the comment!


Leave a Reply

Or sign in via OpenID:

Or sign in via Facebook:

  • Find Me on Facebook!

  • Connect with Me!

    sduffy on Flickr shawnduffy on Twitter sduffy on FriendFeed
  • Buy my photos!

  • Our Sponsors





    Where everyone learns Photoshop - National Association of Photoshop Professionals