
In many cases, bad image contrast arises when the range of an image's brightness levels is not over the whole brightness scale. as shown in the following figure.
In those cases, one can improve the image contrast by stretching the original
image's brightness levels.
You determine the minimum and maximum value of the image data and match them to
the most dark and bright color pixel values.
The following figure shows the result of histogram stretching applied to the
above image.
The following source code shows the details of this algorithm in the form of a plug-in for IntelligentView.
You can reach me by e-mail at : yoon@agr.lac.u-psud.fr
(c) 1998, Bokwon YOON