icc.lut
Class MonochromeTransformTosRGB

java.lang.Object
  |
  +--icc.lut.MonochromeTransformTosRGB

public class MonochromeTransformTosRGB
extends java.lang.Object

This class constructs a LookUpTableFP from a RestrictedICCProfile. The values in this table are used to calculate a second lookup table (simply a short []). table. When this transform is applied to an input DataBlk, an output data block is constructed by using the input samples as indices into the lookup table, whose values are used to populate the output DataBlk.

See Also:
jj2000.j2k.icc.RestrictedICCProfile, jj2000.j2k.icc.lut.LookUpTableFP

Field Summary
private  int dwInputMaxValue
           
private static java.lang.String eol
           
private  LookUpTableFP fLut
           
static double ksRGB8ReduceAfterExp
          Transform parameter.
static double ksRGB8ScaleAfterExp
          Transform parameter.
static double ksRGB8ShadowSlope
          Transform parameter.
static double ksRGBExponent
          Transform parameter.
static double ksRGBShadowCutoff
          Transform parameter.
static double ksRGBShadowSlope
          Transform parameter.
private  short[] lut
           
 
Constructor Summary
MonochromeTransformTosRGB(RestrictedICCProfile ricc, int dwInputMaxValue, int dwInputShiftValue)
          Construct the lut from the RestrictedICCProfile.
 
Method Summary
 void apply(DataBlkFloat inb, DataBlkFloat outb)
          Populate the output block by looking up the values in the lut, using the input as lut indices.
 void apply(DataBlkInt inb, DataBlkInt outb)
          Populate the output block by looking up the values in the lut, using the input as lut indices.
 java.lang.String toString()
          String representation of class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eol

private static final java.lang.String eol

ksRGBShadowCutoff

public static final double ksRGBShadowCutoff
Transform parameter.

See Also:
Constant Field Values

ksRGBShadowSlope

public static final double ksRGBShadowSlope
Transform parameter.

See Also:
Constant Field Values

ksRGB8ShadowSlope

public static final double ksRGB8ShadowSlope
Transform parameter.

See Also:
Constant Field Values

ksRGBExponent

public static final double ksRGBExponent
Transform parameter.

See Also:
Constant Field Values

ksRGB8ScaleAfterExp

public static final double ksRGB8ScaleAfterExp
Transform parameter.

See Also:
Constant Field Values

ksRGB8ReduceAfterExp

public static final double ksRGB8ReduceAfterExp
Transform parameter.

See Also:
Constant Field Values

lut

private short[] lut

dwInputMaxValue

private int dwInputMaxValue

fLut

private LookUpTableFP fLut
Constructor Detail

MonochromeTransformTosRGB

public MonochromeTransformTosRGB(RestrictedICCProfile ricc,
                                 int dwInputMaxValue,
                                 int dwInputShiftValue)
Construct the lut from the RestrictedICCProfile.

Parameters:
ricc - input RestrictedICCProfile
dwInputMaxValue - size of the output lut.
dwInputShiftValue - value used to shift samples to positive
Method Detail

toString

public java.lang.String toString()
String representation of class

Overrides:
toString in class java.lang.Object
Returns:
suitable representation for class

apply

public void apply(DataBlkInt inb,
                  DataBlkInt outb)
           throws MonochromeTransformException
Populate the output block by looking up the values in the lut, using the input as lut indices.

Parameters:
inb - input samples
outb - output samples.
Throws:
MonochromeTransformException

apply

public void apply(DataBlkFloat inb,
                  DataBlkFloat outb)
           throws MonochromeTransformException
Populate the output block by looking up the values in the lut, using the input as lut indices.

Parameters:
inb - input samples
outb - output samples.
Throws:
MonochromeTransformException