Lulumoy Studio

Math guide

Brightness / contrast

Linear intensity transform.

I′=sat(αI+β),β=b100·M
sat() clips the result to [0, M] (255 or 65535). α > 1 stretches the histogram around 0; to add contrast without darkening, combine α > 1 with a negative brightness.

Parameters

ParameterMeaning
Brightness (% of range)b, offset as % of the range (−100 to 100).
Contrast (factor)α, multiplicative factor (0 to 4).

References

  1. R. C. Gonzalez, R. E. Woods. Digital Image Processing, 4th ed. Pearson, 2018.