j2d.hpp
Class PseudoColorHpp

java.lang.Object
  extended by j2d.hpp.PseudoColorHpp
All Implemented Interfaces:
HppFilterInterface

public class PseudoColorHpp
extends java.lang.Object
implements HppFilterInterface


Constructor Summary
PseudoColorHpp()
           
 
Method Summary
 short getB(int v)
           
static short getFunction(int v, double a)
           
 short getG(int v)
           
 short getR(int v)
           
 void setColorization(float[] a)
          Set the colorization parameters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoColorHpp

public PseudoColorHpp()
Method Detail

setColorization

public void setColorization(float[] a)
Set the colorization parameters. The values must be between 0.01 and 0.5. a[0] = ar; a[1] = ag; a[2] = ab;

Parameters:
a - a 3 element array

getR

public short getR(int v)
Specified by:
getR in interface HppFilterInterface

getG

public short getG(int v)
Specified by:
getG in interface HppFilterInterface

getB

public short getB(int v)
Specified by:
getB in interface HppFilterInterface

getFunction

public static short getFunction(int v,
                                double a)