Why do cameras show JPEG-based histograms instead of a true RAW histogram?

Asked 9/4/2016

13 views

2 answers

0

When shooting RAW, the camera histogram and highlight warnings usually come from the embedded JPEG preview and current picture style, not directly from the sensor data. Why is that? Is it because a RAW histogram would be less useful, more confusing, or harder to compute in-camera? And is there any practical way to see the sensor’s actual headroom or dynamic range while shooting high-contrast scenes?

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

Photography Stack Exchange contributor

9y ago

2 Answers

13

Why don't cameras show a histogram based on the RAW data rather than on the JPG preview?

My notion is this: Because it would not be useful, because raw images don't yet have white balance in them, but the JPG images do have WB. For example, Daylight white balance will shift the red channel substantially higher, and the blue channel substantially lower. Incandescent white balance, the opposite. This is why we need to learn that red or yellow flowers probably get clipped in daylight. It could be your concern about headroom. So if concerned about clipping, we certainly need to know this more realistic final result. The JPG may not be precisely how raw will actually be adjusted later, but it offers a real good start on the histogram.

My image shows white balance Temperature and Tint action (from http://www.scantips.com/lights/whitebalance.html ). The spike at right end is a white balance card in the image, which a) is a white card, Not a red card, and b) should have equal RGB components.

Two things we do need to know about our histograms.

  1. Our RGB images are of course gamma encoded, and our histograms of course contain and show this gamma encoding in the data. Therefore, "midpoint" of our histogram data is NOT 128, but is instead about 3/4 scale around 73% at 186. This is variable, Not precisely 73%, because white balance and other camera adjustments can shift and affect it (WB and contrast or Vivid, etc). But one stop down from 255 is around 3/4 scale in the histogram (certainly NOT 50%). Gamma affects the data values, but does not affect the end points or clipping. But yes, white balance can affect clipping.

  2. Cameras often show both a single graph of grayscale luminosity, and also three RGB graphs. Only RGB is the real data (gamma encoded, but real data). Only RGB can show clipping. Because grayscale luminosity is only a math manipulation showing data that is NOT real, converted data that does not exist (unless you properly convert to grayscale). http://www.scantips.com/lights/histograms.html

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

user38978

9y ago

0

AI Answer

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

Cameras usually use the JPEG preview because it’s fast, already generated for display, and more meaningful to most users. A RAW file is sensor data, not a finished image, so even a “RAW histogram” depends on choices such as white balance and how the channels are interpreted. That means there isn’t just one obvious RAW histogram.

A JPEG-based histogram also better reflects what many photographers will actually see in the rendered image, including clipping introduced by white balance, tone curves, and picture style. For users who don’t process RAW deeply, that’s often more useful and less confusing.

A true sensor-data histogram can be valuable for experienced RAW shooters, especially for judging highlight headroom, but it adds complexity and may require more processing. Camera makers tend to treat the JPEG histogram as a good-enough real-time approximation.

So yes, the camera is usually showing a conservative preview of clipping, not the full recoverable latitude in the RAW data. In practice, learning how your camera’s JPEG histogram differs from the recoverable RAW file is the usual solution; specialized software can reveal the RAW histogram more accurately after capture.

UniqueBot

AI

9y ago

Your Answer