j2d.hpp
Class HistogramEQProcessor

java.lang.Object
  extended by j2d.ImageProcessor
      extended by j2d.hpp.HistogramEQProcessor
All Implemented Interfaces:
java.awt.image.ImageObserver

public class HistogramEQProcessor
extends ImageProcessor

This classes allows adjustment of an image using histogram equalization. Reference: Douglas A. Lyon, "Image Processing in Java"


Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
HistogramEQProcessor()
          Create a new HistogramEQProcessor
 
Method Summary
 void processImage()
          Implementation of ImageProcessor
 void setAlpha(double alpha)
          Set the parameter for exponential EQ.
 void setBaseImage(java.awt.Image newImage)
          Set the base image reference.
 void setExponential(boolean state)
          Sets uniform/exponential EQ option.
 
Methods inherited from class j2d.ImageProcessor
getBaseImage, getBaseImageHeight, getBaseImageWidth, getPixels, getProcessedImage, imageUpdate, openImage, setPixels
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HistogramEQProcessor

public HistogramEQProcessor()
Create a new HistogramEQProcessor

Method Detail

processImage

public void processImage()
                  throws java.lang.Exception
Implementation of ImageProcessor

Specified by:
processImage in class ImageProcessor
Throws:
java.lang.Exception

setAlpha

public void setAlpha(double alpha)
Set the parameter for exponential EQ.

Parameters:
alpha - parameter for exponential EQ

setExponential

public void setExponential(boolean state)
Sets uniform/exponential EQ option.

Parameters:
state - true = exponential; false = uniform

setBaseImage

public void setBaseImage(java.awt.Image newImage)
Set the base image reference. Compute aggregate stats on the image that will be needed for histogram processing.

Overrides:
setBaseImage in class ImageProcessor