JIGL
v1.6

jigl.image.ops
Class HistogramEqualizer

java.lang.Object
  |
  +--jigl.image.SimpleOperator
        |
        +--jigl.image.ops.HistogramEqualizer
All Implemented Interfaces:
Operator

public class HistogramEqualizer
extends SimpleOperator

Equalizes a Histogram and returns a new image with equalized histogram. It uses LookupTable and CumulativeHistogram to implement equalization.

See Also:
LookupTable, CumulativeHistogram

Field Summary
private  CumulativeHistogram hist
          See CumulativeHistogram
private  LookupTable table
          See LookupTable
 
Constructor Summary
HistogramEqualizer()
          Create a empty Histogramequalizer object
 
Method Summary
protected  Image apply(ColorImage image)
          Returns an equalized version of image.
protected  Image apply(ColorImage image, ROI roi)
          Returns an equalized region in an image image.
protected  Image apply(GrayImage image)
          Returns an equalized version of image.
protected  Image apply(GrayImage image, ROI roi)
          Returns an equalized region in an image image.
protected  Image apply(RealColorImage image)
          Returns an equalized version of image.
protected  Image apply(RealColorImage image, ROI roi)
          Returns an equalized region in an image image.
protected  Image apply(RealGrayImage image)
          Returns an equalized version of image.
protected  Image apply(RealGrayImage image, ROI roi)
          Returns an equalized region in an image image.
 
Methods inherited from class jigl.image.SimpleOperator
apply, apply, apply, apply, apply, apply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hist

private CumulativeHistogram hist
See CumulativeHistogram


table

private LookupTable table
See LookupTable

Constructor Detail

HistogramEqualizer

public HistogramEqualizer()
                   throws ImageNotSupportedException
Create a empty Histogramequalizer object

Method Detail

apply

protected Image apply(GrayImage image)
               throws ImageNotSupportedException
Returns an equalized version of image. Returned image is a GrayImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(RealGrayImage image)
               throws ImageNotSupportedException
Returns an equalized version of image. Returned image is a RealGrayImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(GrayImage image,
                      ROI roi)
               throws ImageNotSupportedException
Returns an equalized region in an image image. Returned image is a GrayImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(RealGrayImage image,
                      ROI roi)
               throws ImageNotSupportedException
Returns an equalized region in an image image. Returned image is a RealGrayImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(ColorImage image)
               throws ImageNotSupportedException
Returns an equalized version of image. Returned image is a ColorImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(RealColorImage image)
               throws ImageNotSupportedException
Returns an equalized version of image. Returned image is a RealColorImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(ColorImage image,
                      ROI roi)
               throws ImageNotSupportedException
Returns an equalized region in an image image. Returned image is a ColorImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

apply

protected Image apply(RealColorImage image,
                      ROI roi)
               throws ImageNotSupportedException
Returns an equalized region in an image image. Returned image is a RealColorImage object.

Overrides:
apply in class SimpleOperator
ImageNotSupportedException

JIGL
v1.6

Submit a bug or feature
Revised in May 2002 by Weiming Liu