jjil.algorithm
Class GrayHist

java.lang.Object
  extended by jjil.algorithm.GrayHist

public class GrayHist
extends java.lang.Object

Computes the histogram of a gray image. Not a pipeline stage!

Author:
webb

Method Summary
static int[] computeHistogram(Gray8Image image)
          Compute the histogram of the input gray image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

computeHistogram

public static int[] computeHistogram(Gray8Image image)
Compute the histogram of the input gray image.

Parameters:
image - the input image
Returns:
the histogram, a 256-element int array. The array is offset so element 0 corresponds to signed byte value -128.