|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectpsychWithJava.CLUT8
public class CLUT8
Provides methods to perform lookup operations. User provides the lookup table in a file, methods of this class can report the luminance of a pixel, and can find the pixel whose luminance is closest to the required luminance.
Constructor Summary | |
---|---|
CLUT8(double[] table)
|
|
CLUT8(java.lang.String filename)
constructs a LUT8 object. |
Method Summary | |
---|---|
double |
getMaxLum()
returns the maximum available luminance |
int |
lum2Pix(double lum)
Returns the pixel whose luminance is CLOSEST to the required luminance. |
int |
lum2Pix(int lum)
Returns the pixel whose luminance is CLOSEST to the required luminance. |
static void |
main(java.lang.String[] args)
|
double |
pix2Lum(int pixel)
Returns the RELATIVE luminance of the given pixel. |
void |
setClut(double[] table)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CLUT8(java.lang.String filename) throws java.lang.IllegalArgumentException
filename
- the name of the file containing pixel-luminance value pairs
java.lang.IllegalArgumentException
public CLUT8(double[] table) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
Method Detail |
---|
public void setClut(double[] table)
public double getMaxLum()
public int lum2Pix(double lum)
lum
- required Luminance (real number, i.e. double)
public int lum2Pix(int lum)
lum
- required Luminance (whole number, integer)
public double pix2Lum(int pixel)
pixel
- whose luminance is sought
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |