• 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 / Raw histograms

Raw histograms

December 4, 2012 JimK Leave a Comment

For the past nine months, I’ve been using the Betterlight scanning back. The software that runs the back has a capability that, as far as I know, is unique among all the current crop of digital cameras: it will display the histogram of the captured image in its native color space. In fact, that is the only way you can get the histogram.

I consider the Betterlight histogram to be an exemplar of its function. You can click on one or more points in the image, and it will show their position on the histogram and give you a numeric reading of their luminance in EV.

In addition, it displays the horizontal axis logarithmically, and there’s a mode where it will identify the top two one f-stop bands, the bottom two such bands, and the middle grey band by color:

It will also show you where those regions are in the image:

Some of you are right with me and are saying how great that is, especially the true raw histogram part. For everybody else, let me back up a little bit.

Unless you’re a Betterlight user, the histograms that you’re used to seeing on the back of your camera are not presented in terms of the primaries of the camera’s native color space. The way that most digital photography experts put it is that the histogram you see on the back of the camera is computed from a JPEG image.

If you’re using a camera that computes the histogram before the exposure is made, like a mirrorless interchangeable lens camera, I don’t believe that the above explanation is strictly accurate, although it’s on the right track. What I think is happening – and the camera manufacturers are not particularly forthcoming, so I don’t know for sure – is that the histogram that you see is derived from part of the image processing chain that produces the JPEG file. I think that the image processing ahead of the histogram computation shares many operations — demosaicing, conversion to a standard color space (in most high-end cameras, the choices are sRGB or Adobe 1998 RGB), white balance, contrast settings, and special effects — with the JPEG processing. To produce the histogram, the camera subsamples (to make the computation easier), and assigns pixels to buckets. To produce the JPEG file, the camera performs the 8×8 discrete cosine transform JPEG compression and formats the data in the standard JPEG file format.

If you’re using a DSLR and using live view, the above applies. If you aren’t using live view, you make the exposure and then you look at the histogram. In that case, even if you have your camera configured to save the image in raw format, it’s likely that you are looking at a histogram created from the data in the raw file, either from a JPEG preview image, or computed from the raw data using the settings for color space, contrast settings, and special effects encoded in the metadata. If anyone knows the details of how this is done in any particular camera, I’d be delighted to learn more.

If you’re trying to use the histogram in the back of the camera to get the correct exposure using the expose-to-the-right (ETTR) method, having the camera present the histogram of the image after extensive processing is not at all what you want. Almost all the time, the camera’s histogram will show clipping at the right side of the image well before the actual raw data is clipped. You can make your histogram less inaccurate by choosing the widest color space available (usually Adobe 1998 RGB), the lowest contrast setting available, and getting the right white balance. You can do that last by either buying a camera whose automatic white balance is reasonably accurate, or taking some care to manually set the correct white balance. It may seem silly to set white balance that will have no effect on the data in your raw file, but you will see a less wonky histogram.

Nothing you can do will give you precise information about what’s going on with the horizontal axis. Are you within a stop of clipping? Half a stop? There’s no way to tell accurately. However, there are ways to get an idea, and more on that in a later post. I don’t know of an effective workaround at the left side of the histogram, where you’d like to get an idea of how well populated the buckets are so you can see if the shadows are getting crunchy, but there’s a way to see what’s going on after the fact, and, armed with that information, you may get a feel for the left side.

Stay tuned for more on this. Send in questions and I’ll try to deal with them.

The Last Word

← JPEG 2000 Looking at true raw histograms →

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

  • JimK on How Sensor Noise Scales with Exposure Time
  • Štěpán Kaňa on Calculating reach for wildlife photography
  • Štěpán Kaňa on How Sensor Noise Scales with Exposure Time
  • JimK on Calculating reach for wildlife photography
  • Geofrey on Calculating reach for wildlife photography
  • JimK on Calculating reach for wildlife photography
  • Geofrey on Calculating reach for wildlife photography
  • Javier Sanchez on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • Mike MacDonald on Your photograph looks like a painting?
  • Mike MacDonald on Your photograph looks like a painting?

Archives

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

Unless otherwise noted, all images copyright Jim Kasson.