JIGL
v1.6

jigl.image.ops.levelOps
Class LookupTable

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

public class LookupTable
extends SimpleOperator

Retrieve the lookup table of a grayscale image. Supports GrayImage, RealGrayImage.

For each current grayscale value in a image, the lookup table contains a corresponding grayscale values in the equalized image.


Field Summary
private  int clip_max
          table[max-1]
private  int clip_min
          table[0]
private  int max
          The length of lookup table
private  int min
          The start grayscale value in the histogram
private  float[] table
          A arry to store the lookup table
 
Constructor Summary
LookupTable(float[] data, int start, int min_val, int max_val)
          Creates a LookupTable
 
Method Summary
protected  Image apply(GrayImage image)
          Applies lookup table to image and return the equalized image.
protected  Image apply(GrayImage image, ROI roi)
          Applies lookup table to image in a specific Region of Interest.
protected  Image apply(RealGrayImage gr)
          Applies lookup table to image and return the equalized image.
protected  Image apply(RealGrayImage image, ROI roi)
          Applies lookup table to image in a specific Region of Interest.
 
Methods inherited from class jigl.image.SimpleOperator
apply, apply, apply, apply, 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

table

private float[] table
A arry to store the lookup table


min

private int min
The start grayscale value in the histogram


max

private int max
The length of lookup table


clip_min

private int clip_min
table[0]


clip_max

private int clip_max
table[max-1]

Constructor Detail

LookupTable

public LookupTable(float[] data,
                   int start,
                   int min_val,
                   int max_val)
Creates a LookupTable

Parameters:
data - an array containing the data to be loaded
start - the lowest value
min_val - value for any pixel lower than start
max_val - value for any pixel larger than the high
Method Detail

apply

protected Image apply(GrayImage image)
Applies lookup table to image and return the equalized image.

Overrides:
apply in class SimpleOperator
Parameters:
image - GrayImage to apply lookup table to.
Returns:
image

apply

protected Image apply(RealGrayImage gr)
Applies lookup table to image and return the equalized image.

Overrides:
apply in class SimpleOperator
Returns:
image

apply

protected Image apply(GrayImage image,
                      ROI roi)
Applies lookup table to image in a specific Region of Interest.

Overrides:
apply in class SimpleOperator
Parameters:
image - GrayImage to apply lookup table to.
roi - Region of Interest of image
Returns:
image

apply

protected Image apply(RealGrayImage image,
                      ROI roi)
Applies lookup table to image in a specific Region of Interest.

Overrides:
apply in class SimpleOperator
Parameters:
image - RealGrayImage to apply lookup table to.
roi - Region of Interest of image
Returns:
image

JIGL
v1.6

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