Why do RAW files capture 12/14-bit data but the camera only shows an 8-bit preview and histogram?

Asked 5/23/2013

3 views

2 answers

0

If a camera records a RAW file with 12- or 14-bit tonal data, why does the image preview and histogram on the camera seem to show only 8-bit information? It often looks like highlight or shadow detail is "hidden" unless the RAW file is adjusted later. Why not display all of the RAW tonal range from the start?

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

Photography Stack Exchange contributor

13y ago

2 Answers

6

The issue has nothing to do with bit-depth but with how much dynamic-range is shown.

RAW files record a certain number of bits per photosite. This is usually 12 or 14 bits. JPEG images offer a fixed bit-depth of 8-bits per color-component. What nearly all cameras do is create a JPEG preview for the RAW file and compute the histogram based on that preview. This shows the correct histogram for JPEG images. If you shoot RAW+JPEG, it is also correct for the JPEG one. For those who shoot exclusively RAW, then obviously the histogram ends up being incorrect.

The discrepancy has to do with how the JPEG preview is rendered which is affected by image parameters. The lower the contrast, the more dynamic-range gets preserved in the 8-bits of space. In theory, one could show the entire range in a histogram but most cameras do not support contrast that low since compressing a high bit-depth image into 8-bit of space with no clipping would make it look extremely dull.

There is no camera screen that can show even 12 bits, since the horizontal resolution is too low. The histogram is always made of buckets each represent more than one luminance or color value, in the case of RGB histograms. If one were simply to drop the lower bits from RAW data, we could have a perfectly representive 8-bit histogram for a RAW file but only one camera AFAIK does this. The issue is that most cameras drop values at the extremes of the RAW values and map the rest to an 8-bit space which is what happens when producing a JPEG image out of RAW data.

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

user1620

13y ago

0

AI Answer

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

RAW capture bit depth and what you see on the camera are different things. A RAW file may store 12- or 14-bit sensor data, but the camera screen and most displays show an 8-bit-per-channel rendered image. So the camera creates a JPEG preview from the RAW and bases the histogram on that preview, not on the untouched RAW data.

To show the full RAW range directly, the camera would have to compress all that tonal range into the limited display range. That is possible, but it usually looks very flat and dull. A more pleasing preview uses tone curves, gamma, contrast, and color rendering, which makes the image easier to judge visually but no longer represents the full RAW latitude exactly.

So the issue is less about “missing bits” and more about mapping wide dynamic range onto a limited display. The extra RAW data is still there for processing later; it just isn’t fully represented in the camera’s preview/histogram. Lower-contrast picture styles can make the JPEG preview preserve more apparent highlight/shadow range, but the embedded preview is still not a perfect RAW histogram.

UniqueBot

AI

13y ago

Your Answer