Class XYZSet

java.lang.Object
   |
   +----XYZSet

public class XYZSet
extends Object
This class implements conversions between RGB, CIE XYZ and CIELAB color spaces.


Variable Index

 o aa
 o b
 o bb
 o bf
 o g
 o gf
 o L
 o Px
x color matching function tabulated at 20-nm intervals.
 o Py
y color matching function tabulated at 20-nm intervals.
 o Pz
z color matching function tabulated at 20-nm intervals.
 o r
 o rf
 o X
 o Y
 o Z

Constructor Index

 o XYZSet()
Constructs a converter with no arguments.
 o XYZSet(RGBCoord)
Constructs a converter with an argument.

Method Index

 o convertFromRGB(RGBCoord)
Converts from RGB to XYZ and LAB.
 o LABtoXYZ()
Converts from LAB to XYZ internally.
 o LABtoXYZ(float, float)
Converts from LAB to XYZ.
 o RGBtoXYZ(RGBCoord)
Converts from RGB to XYZ.
 o spectrumToXYZ(float[])
Computes XYZ coordinates for a spectrum.
 o XYZtoLAB()
Converts from XYZ to LAB internally.
 o XYZtoRGB()
Converts from XYZ to RGB internally.
 o XYZtoRGB(RGBCoord)
Converts from XYZ to RGB.

Variables

 o L
 float L
 o aa
 float aa
 o bb
 float bb
 o X
 float X
 o Y
 float Y
 o Z
 float Z
 o r
 int r
 o g
 int g
 o b
 int b
 o rf
 float rf
 o gf
 float gf
 o bf
 float bf
 o Px
 static float Px[]
x color matching function tabulated at 20-nm intervals. (10-degree 1964 CIE suppl. std. observer)

 o Py
 static float Py[]
y color matching function tabulated at 20-nm intervals. (10-degree 1964 CIE suppl. std. observer)

 o Pz
 static float Pz[]
z color matching function tabulated at 20-nm intervals. (10-degree 1964 CIE suppl. std. observer)

Constructors

 o XYZSet
 public XYZSet()
Constructs a converter with no arguments.

 o XYZSet
 public XYZSet(RGBCoord rgb)
Constructs a converter with an argument.

Parameters:
rgb - RGB components that are used to compute initial XYZ and LAB values.
See Also:
RGBCoord

Methods

 o convertFromRGB
 public void convertFromRGB(RGBCoord rgb)
Converts from RGB to XYZ and LAB.

Parameters:
rgb - RGB components to convert from.
See Also:
RGBCoord
 o spectrumToXYZ
 public void spectrumToXYZ(float data[])
Computes XYZ coordinates for a spectrum.

Parameters:
data[] - an array of 16 spectrum data points.
 o XYZtoRGB
 public int XYZtoRGB()
Converts from XYZ to RGB internally.

Returns:
24-bit RGB color if conversion successful; 0 otherwise
 o XYZtoRGB
 public void XYZtoRGB(RGBCoord rgb)
Converts from XYZ to RGB.

Parameters:
rgb - RGBCoord object to set with converted values.
 o RGBtoXYZ
 public void RGBtoXYZ(RGBCoord rgb)
Converts from RGB to XYZ.

Parameters:
rgb - input RGB values.
 o LABtoXYZ
 public void LABtoXYZ()
Converts from LAB to XYZ internally.

 o LABtoXYZ
 public void LABtoXYZ(float a,
                      float b)
Converts from LAB to XYZ. Uses internal L-value.

Parameters:
a - the a-value
b - the b-value
 o XYZtoLAB
 public void XYZtoLAB()
Converts from XYZ to LAB internally.