Exposing the Secrets of the Mystogram

The histogram is an awkward visual metaphor invented by software Mathematician/Engineers to describe the tonal values of each color channel in a digital image. It is a noble attempt to visualize the dynamics of an image’s tones, even if it is a bit confusing. And, the ubiquitous histogram can actually be quite misleading.

We have been warned over-and-over again in Photoshop and Lightroom tutorials about the perils of “gappy” histograms produced by editing images in 8-bit depth. O, the pixel carnage! Think of all the data loss represented by histograms containing uneven tones and horrid gaps between them. We’re told how irresponsible it is to produce images files with gaps in their histograms. As if a smooth histogram is a somehow a healthy histogram, and the gappy histos provide evidence of fractured tonal ranges.

Pigeon-puckie!

Here’s something to keep in mind about images. Detail is a product of contrast alone. Contrast is the dynamic difference between tonal values, with higher contrast delivering more dramatic detail. The more contrast between adjacent pixels, the more visual is the detail. And that, my friends, creates the gaps in a histogram. A “gap” in a histogram could mean that two side-by-side pixels differ in value by as little as one-third of one percentage point- virtually indistinguishable to the human eye.

DaveNaoma

Of course the point is always made that smooth gradients in photos (gradual changes in tones) will posterize and show banding. While this is absolutely true, the vast majority of photos will be unaffected by this slight irregularity. The two images seen above look pretty much identical except that the one on the left shows less detail than the one on the right. The other major difference though is that the image on the right displays less tones, shows gaps in its histogram, AND shows more detail.

When the contrast difference between tones reaches just 1%, a small gap shows in the (8-bit) histogram. Remember, histograms only give us crude feedback as to the relationship between adjacent tones. In English… there are 256 vertical lines in an image’s histogram, each occupying 1 pixel in width and representing one tone (1/3 of each 1% in value). That’s why a Photoshop histogram is exactly 256 pixels wide.

In a typical 8-bit image, histograms only display 256 levels of tone per color. And that means that those 12-bit image histograms are only showing you a small portion of the tone level status of the image. To actually show you a 12-bit histogram, the dialog box would have to be 55.5 inches wide! Naturally, we opt for the abridged version.

This is why you don’t see any fractures in the histogram when you operate in hi-bit depth. The fractures are there, they are just so insignificant that you can’t see them. The bottom line is this. Without contrast there is no detail, just mellow mush. Images that contain no gaps and spikes in their histograms probably lack both drama and detail in their appearance.

This is neither my 95 Thesis on histograms, nor is it a hill I’m willing to die on; it’s just a self reminder that an occasional gap between vertical bars in a histogram doesn’t mean the image has lost any data; it has simply reassigned those tones to another value for the sake of contrast in an attempt to deliver visual detail.

hrrumph!

Thanks for joining me. See you next time. Herb

hpaynter@imageprep.net

http://imageprep.net

Click the Follow button at the top of the page so you don’t miss any future posts.

PS. if you have an iPad and are interested in learning more about the fundamentals of digital photography, I suggest that you take a look at my Accurate Color iBook in the iTunes Store

https://itunes.apple.com/us/book/accurate-color-audio-video/id509451372?mt=11

About Herb Paynter

I'm an author, photographer, and digital imaging consultant living in Fort Pierce, Fl. I've been in the color game for more years than I care to admit. In that time I have picked up some insights and experience that I like to share.
This entry was posted in Tonality and Appearance, Underpinnings and Core Issues and tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

3 Responses to Exposing the Secrets of the Mystogram

  1. Audrey says:

    Does that mean that as the photo comes out of the camera the contrast is less that optimal since the initial histogram never has any gaps? Is this simply a representational middle ground? Or does it represent the fact that all digital files require a bit of “capture sharpening” whether or not other sharpening is required or desired? Or?

    • Herb Paynter says:

      Thanks for the question- it’s a good one. The purpose of the histogram is to simply reveal the current dispersion of tones in the image. It is a visual thermometer of the image. The histogram is not the Holy Grail of photography, and probably garners more attention than necessary. The real test is visual. Look at the image and discern whether the current arrangement of tones is delivering the visual message or whether it needs a little massaging. The lighting of the original scene determines the shape of the histogram. If the lighting was dramatic the histogram shape will show more drama than if the lighting was flat. In the case of the example photo, Dave’s dark blue shirt and face received no direct lighting and therefore displayed little detail (detail is a product of contrast). To build contrast in his face and shirt I pushed some of the three-quarter tones (darker middle tones) slightly darker. This little shift established a slight contrast which in turn separated the lines in the histogram.

      If the original photo was well lit and the original histogram is smooth then no tone adjustment will be necessary. If it ain’t broke… Every photo has to be judged on its own appearance. There are no perfect formulas to be followed that will guarantee great results from every photo. Lighting is the key, and if it isn’t ideal in the original scene, it may need a little help. Just don’t let small gaps in the histogram scare you. Edit visually. Some small degree of sharpening is usually helpful, but restraint is the key.

      • Audrey says:

        Thanks, Herb. I’ve always ignored the gaps anyway, but now I understand why it works to do so and what they really mean.

Leave a Reply

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

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 )

Google+ photo

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

Connecting to %s