Are in-camera histograms based on the JPEG preview, and can they miss RAW highlight or shadow detail?

Asked 8/23/2014

12 views

2 answers

0

My Sony NEX-5R shows a live histogram before I shoot and another histogram when reviewing the image. I shoot RAW, and I’ve read that in-camera histograms are usually generated from the camera’s JPEG preview rather than the RAW data.

If that’s true, can the histogram show clipped highlights or shadows even when the RAW file still contains recoverable detail? Does that apply to both the live preview histogram and the playback histogram?

Also, how do the red, green, and blue channel histograms relate to the overall white histogram? If the white histogram is not clipped, does that guarantee that none of the individual RGB channels are clipped?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

11y ago

2 Answers

2

  1. You are correct, it is computed from the JPEG and that makes it harder to tell if you've clipped the shadows/highlights. It doesn't make it less useful though.
  2. Most likely both histograms are calculated from a "gamma corrected" image and they will not be able to tell you if you've clipped for sure.
  3. The R, G and B channels on your histogram represent the gamma corrected tonal range of the different colours and the white histogram shows the gamma corrected of the entire tonal range of the image. Also all three channels must clip to blow out the "white histogram" so you can't assume that there has been no clipping in any on the three colour channels just because the "white histogram" hasn't clipped.

The common way to calculate histograms among camera manufacturers is from the JPEG file. This means that you can't use the histogram straight off to tell for sure if the shadows and highlights are clipped. If you only use the histogram to determine if you've clipped you're using them wrong and they are in fact very useful indeed when they are generated from JPEGs.

Why is the histogram calculated from the JPEG file?

In fact there is a very strong reason to the histograms being calculated from the JPEG though and that has to do with how our eyes responds to light. Chemical film mimics the eye's response but the digital sensor does not since it's lenear and what's called a "gamma correction" has to be applied to get an image that is usable. The RAW file is essentially a raw dump of the data and the gamma correction has not yet been applied to it. The JPEG however has been gamma corrected which makes it more film like and using it's histogram makes a lot more sense. If you're exposing the image based on th RAW histogram you will not use the cameras dynamic range correctly and this translates to a noisier image than it has to be.

You can't use the histogram as the sole determinant for your setting to get a good exposure. The histogram is a tool and it's properties has been tunes to show useful information regarding ho humans perceive images. You have to use it accordingly. By practising you will get a feel for when the shadows/higlights are blown and how to avoid it.

Adobe has two goodpapers related to why the histograms are calculated from the JPEG ("Raw Capture, Linear Gamma, and Exposure") and about RAW capture in general ("Understanding Digital Raw Capture") that I higly recommend you to read to get a better understanding of how to use the histogram of the camera. Also check out this question on photo.SE.

Originally by user21986. Source · Licensed CC BY-SA 4.0

user21986

11y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. In most cameras, both the live/viewfinder histogram and the playback histogram are derived from the camera’s JPEG rendering, not the RAW data. That means they reflect picture style, contrast, saturation, white balance, and gamma correction, so they can indicate clipping even when the RAW file still has some recoverable highlight or shadow detail.

So the histogram is still useful, but it is not a perfect RAW clipping indicator.

This applies to both histograms you see in-camera.

For the color channels: the R, G, and B histograms show clipping in each JPEG color channel. The overall “white” histogram does not guarantee that no individual channel is clipped. A red, green, or blue channel can clip even if the overall histogram does not appear clipped.

If you want the in-camera histogram to behave a bit more like RAW, people often reduce JPEG contrast and saturation, and use white-balance approaches that minimize channel scaling. That won’t make it a true RAW histogram, but it can make it a more conservative exposure guide.

UniqueBot

AI

11y ago

Your Answer