Both formulas are used, one to encode gamma, and one to decode gamma. Gamma encoding is used to increase the quality of shadow values when an image is stored as integer intensity values, so to do gamma encoding you use the formula: encoded = ((original / 255) ^ (1 / gamma)) * 255

Since those early days, we’ve come to get to know these conversions well. They are closely defined by what is called the gamma correction function. This function is parameterized (defined) by the gamma value. This means that a different gamma value produces a different conversion function. The function looks like this: V out =AV in γ. A is a ...

Both formulas are used, one to encode gamma, and one to decode gamma. Gamma encoding is used to increase the quality of shadow values when an image is stored as integer intensity values, so to do gamma encoding you use the formula: encoded = ((original / 255) ^ (1 / gamma)) * 255

This correction is known as gamma correction. The reason both gamma and linear color spaces exist is because lighting calculations should be done in linear space in order to be mathematically correct, but the result should be presented in gamma space to look correct to our eyes.

Photographic film shows a logarithmic response, involving a power factor, gamma (γ), where: opacity ∝ I γ. The gamma value can be adjusted using the Diffract > Gamma Correction submenu. Higher gamma values make it easier to show weaker reflexions, in the presence of stronger ones.