pub fn apply_gamma(image: &mut RgbImage, gamma: f32)Expand description
Apply gamma correction to an RGB image.
Applies the formula: V_out = V_in ^ (1 / gamma)
Input and output are in the range [0, 65535].
For repeated application of the same gamma, consider using GammaLut
which caches the lookup table.
ยงArguments
image- The image to modify in placegamma- Gamma value (typically 2.2 for sRGB)