The following Matlab project contains the source code and Matlab examples used for contrast controller. Two algorithms to adjust the contrast level of images are coded. One of the method is contrast stretching. Works for both gray and colored images.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.