Class HistogramEqualization


  • public class HistogramEqualization
    extends java.lang.Object
    Applies histrogram equalization transformation to distribute pixel intensity values all over whole range of possible pixel values ( i.e. 0 - 255 ), for a given image. But this method can be only applied on grayscaled images, so we'll first grayscale it & then perform further ops on top of it
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage transform​(java.awt.image.BufferedImage img)
      Given a image ( which is already read in a BufferedImage object ), we'll first grayscale it ( grayscaling one already grayscaled image doesn't cause any side effects ), & then for each pixel intensity value we'll obtain transformed pixel intensity value i.e.
      java.awt.image.BufferedImage transform​(java.lang.String src)
      If you want to just pass a path to an image, it'll read it & then return histogram equalized image
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HistogramEqualization

        public HistogramEqualization()
    • Method Detail

      • transform

        public java.awt.image.BufferedImage transform​(java.awt.image.BufferedImage img)
        Given a image ( which is already read in a BufferedImage object ), we'll first grayscale it ( grayscaling one already grayscaled image doesn't cause any side effects ), & then for each pixel intensity value we'll obtain transformed pixel intensity value i.e. after applying histrogram equalization

        Finally updated image buffer to be returned which can be either exported into file & can be used for further processing purposes.

        Concurrency support incorporated using thread pool.

      • transform

        public java.awt.image.BufferedImage transform​(java.lang.String src)
        If you want to just pass a path to an image, it'll read it & then return histogram equalized image