Introduction - If you have any usage issues, please Google them yourself
Calculating a gray-scale image histogram simple linear transformation, and to do with the source image histogram transformation the use of histogram equalization for image enhancement