psychWithJava
Class CLUT

java.lang.Object
  extended by psychWithJava.CLUT

public class CLUT
extends java.lang.Object

Provides methods to perform (inverse) lookup operations. Extends the 8 bit version to 16 bits for bits++

Author:
boyaci

Constructor Summary
CLUT(double[] table)
           
CLUT(double[] table, int bits)
           
CLUT(java.lang.String filename)
           
CLUT(java.lang.String filename, int bits)
           
 
Method Summary
 double getMaxLum()
           
 int lum2Pix(double lum)
           
 int lum2Pix(int lum)
           
 double pix2Lum(int pixel)
           
 void setClut(double[] table)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLUT

public CLUT(java.lang.String filename)

CLUT

public CLUT(double[] table)

CLUT

public CLUT(java.lang.String filename,
            int bits)
     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

CLUT

public CLUT(double[] table,
            int bits)
     throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

setClut

public void setClut(double[] table)

getMaxLum

public double getMaxLum()

lum2Pix

public int lum2Pix(double lum)

lum2Pix

public int lum2Pix(int lum)

pix2Lum

public double pix2Lum(int pixel)