Android Example Image - Enhancing Image Contrast by means of Histogram Equalization and Histogram Stretching

HISTOGRAM.png


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:

HistEqual.png


HistEqual1.png


HistEqual2.png


HistEqual3.png
 

Attachments

  • JHS_HIST_EQUAL_V2.zip
    482.8 KB · Views: 1,045
  • JHS_HIST_STRETCH.zip
    482.6 KB · Views: 921
Last edited:
Top