Introduction - If you have any usage issues, please Google them yourself
Histogram of the image, and the appropriate gray-scale transformation, linear and nonlinear gray scale stretching transform, to improve the visual effects of the image;
Main function, write your own;
Run the implementation in a master program and select parameters at a unified interactive interface