4
\$\begingroup\$

I have been reading some tutorials and documentation on Rawtherapee software, specifically its exposure compensation.

I am curious how exposure is correctable after the RAW image is captured?

For example, if I take a photo of clouds that is overexposed and there is a white clipped area, how can rawtherepee correct that clipped area if all it know is that there is a bunch of white pixels. How can it restore the white pixels to non-white?

Is exposure just a post process value that is contain in the raw file, but not a characteristic of the actual raw sensor data? If this is the case, why even apply exposure in a RAW image and not just always after the fact?

If my question seems unclear it is probably because my conceptions are unclear to begin with.

\$\endgroup\$
1
  • \$\begingroup\$ FYI, in Rawtherapee you can look at the raw histogram as well (it's one of the toggle buttons next to the histogram) to see if you're clipped in the raw file. \$\endgroup\$
    – PGnome
    Aug 18, 2016 at 15:31

3 Answers 3

7
\$\begingroup\$

Very good question :0)

When you expose your image you have more detail than you can normally see on a normal monitor. This is more a limitation of the display technology than the raw sensor.

This technology is limited to the 256 levels of gray for each channel, but your sensor captures more levels on each channel, this means you have more color diferences on the dark areas and bright areas, making it possible to "reinterpret" your image as is it was exposed brighter or darker when you see it again as 256 level image.

I think a key word here is reinterpret. Remember that a raw file is considered an "undeveloped" image.

Remember the old days when you used negatives. You could expose more or less your paper to achive a lighter or darker version of your negative. When you make adjustments you are reinterpreting the raw data, to give it a "flavour". Exposition at some extent, is just one of this flavours.

But if the exposure is really clipped, you can not recover detail because beyond that limit you do not have information at all.

Take a look at this post: What's the point of capturing 14 bit images and editing on 8 bit monitors?

\$\endgroup\$
2
\$\begingroup\$

Exposure can only be corrected as long as there is som information left in the raw data.

You can make a nearly white pixel somewhat less bright, and stretch the difference between some almost equally bright pixels (increase contrast), but of course, if the data is clipped (pure white), all you can do is "invent" something by interpolating neighbouring pixels. (Some highlight recovery algorithms do this when only some colour channels are clipped, leading to unnatural colours)

That said, RAW files have a wider latitude for these corrections, since they usually contain more data than JPEG images (12,14,or even 16 bits per channel vs. only 8 in JPEG). Every RAW conversion must map these values into the narrower range when producing an 8bit output image, and exposure correction can shift the selected data up or down, while other corrections (contrast, highlight/shadow recovery) influence the stretching or compression on different parts of the range.

\$\endgroup\$
3
  • 2
    \$\begingroup\$ I don't think this really gets to the core of the issue in that the data in the data can be clipped in the JPEG / the 8-bit preview shown on screen, but be unclipped in the 14-bit data stored in the RAW file. \$\endgroup\$
    – Philip Kendall
    Aug 18, 2016 at 14:50
  • \$\begingroup\$ It also ignores the greatest advantage of using RAW files vs. JPEG files for editing: The gamma values aren't already baked in. \$\endgroup\$
    – Michael C
    Aug 18, 2016 at 22:39
  • \$\begingroup\$ The baked in gamma is irrelevant, as long as you have enough bit depth. Gamma is just a kludge to cram more "relevant" info in 8 bits. \$\endgroup\$
    – ths
    Aug 19, 2016 at 6:27
0
\$\begingroup\$

Jpg is a compressed format where many pixels are simply discarded based on the jpg quality and compression algorithm used.

It is possible that the original RAW (i.e. ALL pictures taken by digital cameras) capture contained pixels which allow the recovery possible. Discarded pixels are lost. RAW 'development' are simply showing them, not creating them.

One of the suggestions made by experts shooting RAW is expose to the right, as it is easier to recovers highlights versus blacks, where there are NO pixels to recover from.

\$\endgroup\$
1
  • \$\begingroup\$ It's not about pixels so much as it is about bit depth, baking in gamma cures, and compression. \$\endgroup\$
    – Michael C
    Aug 18, 2016 at 22:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.