• site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge

the last word

Photography meets digital computer technology. Photography wins -- most of the time.

You are here: Home / The Last Word / How many tones above the midpoint in your camera’s histogram?

How many tones above the midpoint in your camera’s histogram?

May 18, 2012 JimK Leave a Comment

This is a continuation of a previous post that dealt with an article in the March/April 2012 issue of photo technique entitled “Mastering the Camera Histogram for Better Exposure”. The context of the article is how to obtain the best exposure of a raw file.

In a section of the article headed “Histogram Math” Wells says the following:

An image that is mostly red (or green or blue) will have a higher number of that one color and lower numbers of the others. That is how we get the colors in our images, by mixing varying amounts of red green and blue.

Now go back to the histogram itself and remember that the left to right axis measures the spread of the tones. Then throw in the idea of the red X green X blue calculation. What that means is that because of the mathematics, only 25% of your possible tones are to the left of the midpoint of the histogram and 75% of the tones are to the right of the midpoint in that same histogram.

I have two objections to this set of statements. The first is relatively minor: in additive color spaces like RGB, you get the tri-stimulus value that defines the color by adding the amount of light in each primary rather than by multiplying them. You get the number of possible colors by multiplying the number of possible tones in each primary together, but that calculation is irrelevant for creating or using histograms.

My second objection is more significant: the percentages given are wrong. You can get to the actual numbers in two steps. The first is figuring out how many tonal values are to the right or left of the midpoint of a raw histogram. Since the sensors in cameras (both CCD and CMOS) respond linearly to light, and the midpoint of the histogram is set to the reflectance of an 18% gray card, under the assumption that the brightest object in the picture has 100% reflectance, 82% of the possible tonal values chart to the right of the center of the histogram, and 18% are to the left. The histogram uses a nonlinear horizontal axis to achieve this offset.

The only way to get 75% of the possible tonal values to the right of the center of the histogram is to postulate a system that overloads on 100% reflectance objects. Cameras are not designed that way.

If you peel back one more layer of the onion, the percent of the number possible tones to the right of the center of the histogram gets even higher. In almost all digital cameras, the histogram presented in the LCD display is derived from a JPEG image, not directly from the raw image. In most cases, the whites in the JPEG image blow out well before the whites in the raw image. The extra headroom usually amounts to a stop or two. If it’s one-stop, then 91% of the possible tonal values chart to the right of the center of the histogram and 9% are to the left. If it’s two stops, 95.5% of the possible tonal values are to the right of the center of the histogram, and 4.5% are to the left.

Note that the histogram, since it’s produced from a res’d-down version of the image, doesn’t necessarily capture all the tones in the image. This is largely an academic quibble; I’ve yet to find a situation where it caused a problem.

Note that these objections to the numbers do not negate the main thesis of the article, which is to expose to the right. Actually, they strengthen that point. I don’t think Wells had to use numbers at all to get his idea across, but, since he did, I think he has an obligation to get them right.

There is one omission that is emphasized by the lack of images of camera histograms (there are histograms presented, but they’re from image editors) is advice to look at the histogram of each of the three primaries to make sure that none is clipped. The overall, or luminance histogram, is computed from a weighted average of the red, green, and blue values, and primaries with low weighting – red and blue – can show saturation while the overall histogram looks good. This is especially true with cameras that have been modified for infrared use; on my IR cameras, the red histogram will reliably clip before the overall histogram does.

The numbers in the article give the impression that using the histogram to judge exposure is a genuinely precise business. It isn’t. You don’t know the headroom in the raw file by looking at the histogram of the camera’s JPEG conversion. There are two ameliorating factors. The low noise of today’s APS-C and larger sensors means that you can throw away some tones on the right of the histogram and still get good clean shadows. And, with all its imprecision, the histogram is a very direct tool for looking at all the tones in the image at once – it’s almost like running a spot meter over the whole scene.

 

The Last Word

← Loctite, the photographer’s friend The fog comes back →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

May 2025
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • How to…
    • Backing up photographic images
    • How to change email providers
    • How to shoot slanted edge images for me
  • Lens screening testing
    • Equipment and Software
    • Examples
      • Bad and OK 200-600 at 600
      • Excellent 180-400 zoom
      • Fair 14-30mm zoom
      • Good 100-200 mm MF zoom
      • Good 100-400 zoom
      • Good 100mm lens on P1 P45+
      • Good 120mm MF lens
      • Good 18mm FF lens
      • Good 24-105 mm FF lens
      • Good 24-70 FF zoom
      • Good 35 mm FF lens
      • Good 35-70 MF lens
      • Good 60 mm lens on IQ3-100
      • Good 63 mm MF lens
      • Good 65 mm FF lens
      • Good 85 mm FF lens
      • Good and bad 25mm FF lenses
      • Good zoom at 24 mm
      • Marginal 18mm lens
      • Marginal 35mm FF lens
      • Mildly problematic 55 mm FF lens
      • OK 16-35mm zoom
      • OK 60mm lens on P1 P45+
      • OK Sony 600mm f/4
      • Pretty good 16-35 FF zoom
      • Pretty good 90mm FF lens
      • Problematic 400 mm FF lens
      • Tilted 20 mm f/1.8 FF lens
      • Tilted 30 mm MF lens
      • Tilted 50 mm FF lens
      • Two 15mm FF lenses
    • Found a problem – now what?
    • Goals for this test
    • Minimum target distances
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Printable Siemens Star targets
    • Target size on sensor
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Test instructions — postproduction
    • Test instructions — reading the images
    • Test instructions – capture
    • Theory of the test
    • What’s wrong with conventional lens screening?
  • Previsualization heresy
  • Privacy Policy
  • Recommended photographic web sites
  • Using in-camera histograms for ETTR
    • Acknowledgments
    • Why ETTR?
    • Normal in-camera histograms
    • Image processing for in-camera histograms
    • Making the in-camera histogram closely represent the raw histogram
    • Shortcuts to UniWB
    • Preparing for monitor-based UniWB
    • A one-step UniWB procedure
    • The math behind the one-step method
    • Iteration using Newton’s Method

Category List

Recent Comments

  • Mike MacDonald on Your photograph looks like a painting?
  • Mike MacDonald on Your photograph looks like a painting?
  • bob lozano on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Goldilocks and the three flashes
  • DC Wedding Photographer on Goldilocks and the three flashes
  • Wedding Photographer in DC on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Fujifilm GFX 100S II precision
  • Renjie Zhu on Fujifilm GFX 100S II precision
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF

Archives

Copyright © 2025 · Daily Dish Pro On Genesis Framework · WordPress · Log in

Unless otherwise noted, all images copyright Jim Kasson.