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



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

  • JHS_HIST_EQUAL_V2.zip
    482.8 KB · Views: 986
  • JHS_HIST_STRETCH.zip
    482.6 KB · Views: 854
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…