ucar.jpeg.icc.lut
Class LookUpTable16

java.lang.Object
  extended by ucar.jpeg.icc.lut.LookUpTable
      extended by ucar.jpeg.icc.lut.LookUpTable16
Direct Known Subclasses:
LookUpTable16Gamma, LookUpTable16Interp, LookUpTable16LinearSRGBtoSRGB

public abstract class LookUpTable16
extends LookUpTable

Toplevel class for a short [] lut.

Version:
1.0
Author:
Bruce A. Kern

Field Summary
protected  int dwMaxOutput
          Maximum output value of the LUT
protected  short[] lut
          The lut values.
 
Fields inherited from class ucar.jpeg.icc.lut.LookUpTable
curve, dwNumInput, eol
 
Constructor Summary
protected LookUpTable16(ICCCurveType curve, int dwNumInput, int dwMaxOutput)
          Construct a 16 bit lut from a given curve.
protected LookUpTable16(int dwNumInput, int dwMaxOutput)
          Construct an empty 16 bit lut
 
Method Summary
static LookUpTable16 createInstance(ICCCurveType curve, int dwNumInput, int dwMaxOutput)
          Factory method for getting a 16 bit lut from a given curve.
 short elementAt(int index)
          lut accessor
 String toString()
          Create an abbreviated string representation of a 16 bit lut.
 String toStringWholeLut()
          Create a full string representation of a 16 bit lut.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dwMaxOutput

protected final int dwMaxOutput
Maximum output value of the LUT


lut

protected final short[] lut
The lut values.

Constructor Detail

LookUpTable16

protected LookUpTable16(int dwNumInput,
                        int dwMaxOutput)
Construct an empty 16 bit lut

Parameters:
dwNumInput - the size of the lut t lut.
dwMaxOutput - max output value of the lut

LookUpTable16

protected LookUpTable16(ICCCurveType curve,
                        int dwNumInput,
                        int dwMaxOutput)
Construct a 16 bit lut from a given curve.

Parameters:
curve - the data
dwNumInput - the size of the lut t lut.
dwMaxOutput - max output value of the lut
Method Detail

toString

public String toString()
Create an abbreviated string representation of a 16 bit lut.

Overrides:
toString in class Object
Returns:
the lut as a String

toStringWholeLut

public String toStringWholeLut()
Create a full string representation of a 16 bit lut.

Returns:
the lut as a String

createInstance

public static LookUpTable16 createInstance(ICCCurveType curve,
                                           int dwNumInput,
                                           int dwMaxOutput)
Factory method for getting a 16 bit lut from a given curve.

Parameters:
curve - the data
dwNumInput - the size of the lut
dwMaxOutput - max output value of the lut
Returns:
the lookup table

elementAt

public final short elementAt(int index)
lut accessor

Parameters:
index - of the element
Returns:
the lut [index]


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.