This project demonstrates contrast enhancement of low contrast Grayscale images based on Histogram Equalization as explained at http://en.wikipedia.org/wiki/Histogram_equalization
Click on any one of the displayed images to change to a new image. The new "original grayscale image" will be loaded into the left ImageView and it's "Histogram Equalized" image will be loaded into the right ImageView after conversion.
Made use of Jpeg library by @agraham
The attached HISTOGRAM.png image file shows what the histogram of image "terrain.jpg" looked like before (top) and after (bottom) histogram equalization has been applied.
Edit: JHS_HIST_STRETCH.zip
Stretching the image histogram as opposed to equalization of the image histogram - same image files. See the difference.
Some pics:
Attachments
Last edited: