gammaDecode
gammaDecode refers to the process of reversing gamma correction, a non-linear operation used in image and video processing. Gamma correction is applied to adjust the brightness and contrast of images, often to compensate for the non-linear response of display devices. Gamma decoding, therefore, transforms image data back into a linear light intensity representation, which is necessary for accurate image analysis, manipulation, and display.
The gamma function is typically represented by the equation O = I^gamma, where I is the input intensity,
In practical applications, gamma values are often around 2.2 for typical displays. When an image is captured,