ucar.jpeg.icc.lut
Class MonochromeTransformTosRGB

java.lang.Object
  extended by ucar.jpeg.icc.lut.MonochromeTransformTosRGB

public class MonochromeTransformTosRGB
extends 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.

Version:
1.0
Author:
Bruce A. Kern
See Also:
jj2000.j2k.icc.RestrictedICCProfile, jj2000.j2k.icc.lut.LookUpTableFP

Field Summary
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.
 
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.
 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

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
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 String toString()
String representation of class

Overrides:
toString in class 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


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