steganabara.histogram
Class Histogram

java.lang.Object
  extended by steganabara.histogram.Histogram

public final class Histogram
extends java.lang.Object

Description: The class to calculate the Histogram of an image

Author:
quangntenemy

Constructor Summary
Histogram()
           
 
Method Summary
static int[] blueHistogram(java.awt.image.BufferedImage image)
          Calculate the blue histogram of an image
static int[] grayscaleHistogram(java.awt.image.BufferedImage image)
          Calculate the grayscale histogram of an image
static int[] greenHistogram(java.awt.image.BufferedImage image)
          Calculate the green histogram of an image
static int[] histogram(java.awt.image.BufferedImage image)
          Calculate the histogram using the default mode: grayscale
static int[] histogram(java.awt.image.BufferedImage image, HistogramMode mode)
          Calculate the image histogram using a specified mode
static int[] redHistogram(java.awt.image.BufferedImage image)
          Calculate the red histogram of an image
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Histogram

public Histogram()
Method Detail

histogram

public static int[] histogram(java.awt.image.BufferedImage image,
                              HistogramMode mode)
Calculate the image histogram using a specified mode

Parameters:
image - The source image
mode - The histogram mode
Returns:
The image histogram

histogram

public static int[] histogram(java.awt.image.BufferedImage image)
Calculate the histogram using the default mode: grayscale

Parameters:
image - The source image
Returns:
The grayscale histogram

grayscaleHistogram

public static int[] grayscaleHistogram(java.awt.image.BufferedImage image)
Calculate the grayscale histogram of an image

Parameters:
image - The source image
Returns:
The grayscale histogram

redHistogram

public static int[] redHistogram(java.awt.image.BufferedImage image)
Calculate the red histogram of an image

Parameters:
image - The source image
Returns:
The red histogram

greenHistogram

public static int[] greenHistogram(java.awt.image.BufferedImage image)
Calculate the green histogram of an image

Parameters:
image - The source image
Returns:
The green histogram

blueHistogram

public static int[] blueHistogram(java.awt.image.BufferedImage image)
Calculate the blue histogram of an image

Parameters:
image - The source image
Returns:
The grayscale histogram