Exposure is the most intuitive way to adjust the brightness of a digital photo. Exposure correction simulates the effect of changing exposure in the camera (changing shutter speed, aperture or ISO sensitivity). This post compares two methods for adjusting exposure in Raw Therapee (RT, version 4.08). I found that scaling of the raw photo RGB channels is more accurate than exposure compensation in the RGB working space.
How exposure correction works
Digital cameras are linear devices and exposure correction is simply a factor applied to linear RGB data that simulates the result of more light (factor > 1) or less light (factor < 1) being recorded by the camera sensor.
Light meters measure exposure in stops and photographers think in stops. The relationship between the linear exposure correction factor and exposure compensation (EC) stops is exposure factor = 2^EC. Here is a table that might be helpful.
|Equivalent exposure corrections, stops and linear.|
Here is an example photo which, to my eye, has a satisfactory exposure. Scene brightness covers a wide range and there is potential for clipped highlights.
Here is the same scene underexposed by -0.68 stops. This is a real capture. The scene composition has not shifted because I was using a tripod.
Next, I have applied +0.68 stops exposure compensation to the underexposed photo in RT (Exposure tab). This resulted in clipped red and blue channels and a pink sky. The pink cast is more obvious in the RT preview than in the JPEG output.
To increase exposure in RT, raw white point linear correction factor > 1 (Raw tab) gives better results. Increasing raw exposure will increase highlight clipping, of course, but the results accurately portray how the image would have resulted if the exposure was increased at the moment of capture.
To increase exposure and retain highlights, try using RGB curves (Exposure tab in RT). This post is focussed on basic exposure adjustments and not highlight recovery.
Here is the same scene overexposed by +0.74 stops. The raw photo histogram in RT showed plenty of highlight clipping.
To decrease exposure in RT, raw white point linear correction factor < 1 (Raw tab) often results in false highlight colours, i.e. the relative proportions of RGB are lost when the raw data are clipped. When this happens, highlight reconstruction (Exposure tab) can save the image. Note well: highlight construction works on the raw photo RGB channels, before colour management and conversion to the RGB working space. Highlight construction only makes a difference when the raw photo RGB channels are clipping.
Exposure compensation (Exposure tab) in RT takes place in the RGB working space and does not recover highlight details. The highlight recovery tool (amount and threshold) is similarly ineffective, it can turn white to grey but apparently does not reconstruct and recover details.
Compared to Canon Digital Photo Professional
I have also processed the same images, with the same exposure corrections and white balance, in Canon Digital Photo Professional (DPP) version 188.8.131.52. It appears that Canon DPP applies negative exposure in the working RGB space. This strategy avoids colour artefacts, but some highlight details are lost.
Exposure corrections applied to the raw photo RGB data are nearly equivalent to changing exposure in the camera. Just beware of false highlight colours when decreasing raw exposure in RT and attempt highlight reconstruction if required.