ucar.jpeg.icc.lut
Class LookUpTable32LinearSRGBtoSRGB

java.lang.Object
  extended by ucar.jpeg.icc.lut.LookUpTable
      extended by ucar.jpeg.icc.lut.LookUpTable32LinearSRGBtoSRGB

public class LookUpTable32LinearSRGBtoSRGB
extends LookUpTable

A Linear 32 bit SRGB to SRGB lut

Version:
1.0
Author:
Bruce A. Kern

Field Summary
protected  int dwMaxOutput
          Maximum output value of the LUT
 int[] lut
          the lut values.
 
Fields inherited from class ucar.jpeg.icc.lut.LookUpTable
curve, dwNumInput, eol
 
Constructor Summary
protected LookUpTable32LinearSRGBtoSRGB(int inMax, int outMax, double shadowCutoff, double shadowSlope, double scaleAfterExp, double exponent, double reduceAfterExp)
          Construct the lut
 
Method Summary
static ucar.jpeg.icc.lut.LookUpTable32 createInstance(ICCCurveType curve, int dwNumInput, int dwMaxOutput)
          Factory method for getting a 32 bit lut from a given curve.
static LookUpTable32LinearSRGBtoSRGB createInstance(int inMax, int outMax, double shadowCutoff, double shadowSlope, double scaleAfterExp, double exponent, double reduceAfterExp)
          Factory method for creating the lut.
 int elementAt(int index)
          lut accessor
 String toString()
          Create an abbreviated string representation of a 16 bit lut.
 String toStringWholeLut()
          Create the string representation of a 32 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

public final int[] lut
the lut values.

Constructor Detail

LookUpTable32LinearSRGBtoSRGB

protected LookUpTable32LinearSRGBtoSRGB(int inMax,
                                        int outMax,
                                        double shadowCutoff,
                                        double shadowSlope,
                                        double scaleAfterExp,
                                        double exponent,
                                        double reduceAfterExp)
Construct the lut

Parameters:
wShadowCutoff - size of shadow region
dfShadowSlope - shadow region parameter
ksRGBLinearMaxValue - size of lut
ksRGB8ScaleAfterExp - post shadow region parameter
ksRGBExponent - post shadow region parameter
ksRGB8ReduceAfterExp - post shadow region parameter
Method Detail

createInstance

public static LookUpTable32LinearSRGBtoSRGB createInstance(int inMax,
                                                           int outMax,
                                                           double shadowCutoff,
                                                           double shadowSlope,
                                                           double scaleAfterExp,
                                                           double exponent,
                                                           double reduceAfterExp)
Factory method for creating the lut.

Parameters:
wShadowCutoff - size of shadow region
dfShadowSlope - shadow region parameter
ksRGBLinearMaxValue - size of lut
ksRGB8ScaleAfterExp - post shadow region parameter
ksRGBExponent - post shadow region parameter
ksRGB8ReduceAfterEx - post shadow region parameter
Returns:
the lut

toString

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

Returns:
the lut as a String

toStringWholeLut

public String toStringWholeLut()
Create the string representation of a 32 bit lut.

Returns:
the lut as a String

createInstance

public static ucar.jpeg.icc.lut.LookUpTable32 createInstance(ICCCurveType curve,
                                                             int dwNumInput,
                                                             int dwMaxOutput)
Factory method for getting a 32 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 int elementAt(int index)
lut accessor

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


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