uk.ac.essex.ia.media
Class HistogramOp

java.lang.Object
  extended by uk.ac.essex.ia.media.HistogramOp

public class HistogramOp
extends java.lang.Object

Loads an images histogram this can done either by instantiating this class or by using the static method it provides.


Constructor Summary
HistogramOp()
           
HistogramOp(java.awt.image.RenderedImage image)
          Initialise the image data and load the histogram.
 
Method Summary
static java.util.Vector getBins(javax.media.jai.Histogram hist)
          returns a vector of int arrays that are the bins of the histogram
 javax.media.jai.Histogram getHistogram()
           
static javax.media.jai.Histogram getHistogram(java.awt.image.RenderedImage image)
          Computes the histogram of the given image.
 void set(java.awt.image.RenderedImage image)
          sets the image source and load the histogram using the static method getHistogram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramOp

public HistogramOp()

HistogramOp

public HistogramOp(java.awt.image.RenderedImage image)
Initialise the image data and load the histogram. N.B. This is a reference to the image data. If it should change the histogram will need regenerating

Method Detail

set

public void set(java.awt.image.RenderedImage image)
sets the image source and load the histogram using the static method getHistogram. N.B. This is a reference to the image data. If it should change the histogram will need regenerating

See Also:
getHistogram(), getHistogram(RenderedImage image)

getHistogram

public javax.media.jai.Histogram getHistogram()
Returns:
the histogram created null if not created yet
See Also:
set(java.awt.image.RenderedImage)

getHistogram

public static javax.media.jai.Histogram getHistogram(java.awt.image.RenderedImage image)
Computes the histogram of the given image. Should work for an image with N bands, where each band has varying(or constant) size


getBins

public static java.util.Vector getBins(javax.media.jai.Histogram hist)
returns a vector of int arrays that are the bins of the histogram