Brightness adjustment, contrast definitions (Michelson, Weber, RMS) and contrast adjustment, normalization, negation and nonlinear transformations on image light intensity values are described in this image, as well as image histogram and a brief discussion of histogram equalization.
The code for this video can be downloaded from here:
https://drive.google.com/file/d/1MR7qLTrZRwm5p15ynsnjmyLrh2uhDIdk/view?usp=sharing