In this framework, a generalised contrast enhancement algorithm is proposed which is independent of parameter setting for a given dynamic range of the input image. The algorithm uses the modified histogram for spatial transformation on grey scale to render a better quality image irrespective of the image type.
The code needs to be fed with gray scale image, for which the corresponding modified results will be obtained. The authors would be happy to take queries in case any specific technical doubt arises related to its implementation.
Ref: "Non parametric modified histogram equalization for contrast enhancement," IET image processing. Image Processing, IET , vol.7, no.7, pp.641,652, October 2013
Shashi (2020). Non parametric modified histogram equalization for contrast enhancement (https://www.mathworks.com/matlabcentral/fileexchange/44619-non-parametric-modified-histogram-equalization-for-contrast-enhancement), MATLAB Central File Exchange. Retrieved .