You are currently browsing the FeradZ Blog blog archives for January, 2013


Image Histogram Java Tool

I have recently developped a simple Java GUI-based tool which plots a histogram of a JPG image. The tool manually implements the code for computing and plotting the histograms. It also uses a suple histogram smoothing. The following types of histograms algorithms are computed:

  • Luminosity – the histogram for the luminosity of the pixels is computed.
  • Grayscale 1 – a red-blue-green color pixel is converted into a representative gray pixel based on one popular forumula and the grayscale histogram is computed.
  • Grayscale 2 – a red-blue-green color pixel is converted into a representative gray pixel based on second popular forumula and the grayscale histogram is computed.
  • Red – the histogram for the red color is computed.
  • Green – the histogram for the green color is computed.
  • Blue – the histogram for the blue color is computed.

You can download the source code from ImageHistogram.zip Eclipse Project and a JAR package from ImageHistogram.jar.