public class CIEColor extends XYZColor
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_2_DEGREE_D65_WHITE
Typical conversion from XYZ to RGB assuming a D65 white point and
2-degree illuminant.
|
static int |
DISPLAY_DEFAULT
Default profile for transformations between color spaces.
|
static int |
DISPLAY_ICC_200_LUX_D50_WHITE
Default color space for Java's ICC.1:1998-09 model implementation.
|
Constructor and Description |
---|
CIEColor()
DO NOT USE THIS CONSTRUCTOR!
|
CIEColor(CIEColor that)
Copy constructor that creates a new instance of CIEColor using the
passed in CIEColor.
|
CIEColor(double X,
double Y,
double Z,
double XReference,
double YReference,
double ZReference,
double[] wavelengths,
double[] energySpectrum,
CIEObserver observer,
Illuminant illuminant)
Creates a new instance of CIEColor.
|
Modifier and Type | Method and Description |
---|---|
double |
getColorDifference(XYZColor that)
Computes the color difference between two XYZColor objects.
|
java.awt.Color |
getDisplayColor(int displayMode)
Converts this CIEColor to a Java Color that can be displayed.
|
double[] |
getEnergySpectrum()
Returns an the power of the light at each wavelength in the spectrum.
|
Illuminant |
getIlluminant()
Returns the the CIE Illuminant.
|
double |
getLittleX()
Chromaticity coordinate x of the spectral stimuli.
|
double |
getLittleY()
Chromaticity coordinate y of the spectral stimuli.
|
double |
getLittleZ()
Chromaticity coordinate z of the spectral stimuli.
|
CIEObserver |
getObserver()
Returns the the CIE Observer.
|
double[] |
getWavelengths()
Returns the range of wavelengths in nm of the spectrum.
|
double |
getX()
Getter for the tristimulus value of X.
|
double |
getXReference()
Returns the X-reference stimuli required to match each wavelength of the
equi-energy spectrum.
|
double |
getY()
Getter for the tristimulus value of Y.
|
double |
getYReference()
Returns the Y-reference stimuli required to match each wavelength of the
equi-energy spectrum.
|
double |
getZ()
Getter for the tristimulus value of Z.
|
double |
getZReference()
Returns the Z-reference stimuli required to match each wavelength of the
equi-energy spectrum.
|
getColorSpaceValues, makeReference, toString
getAllColorSpaceDescriptors
public static final int DISPLAY_2_DEGREE_D65_WHITE
|R| | 3.240479 -1.537150 -0.498535 | |X|
|G| = | -0.969256 1.875992 0.041556 | * |Y|
|B| | 0.055648 -0.204043 1.057311 | |Z|
public static final int DISPLAY_ICC_200_LUX_D50_WHITE
public static final int DISPLAY_DEFAULT
public CIEColor()
public CIEColor(double X, double Y, double Z, double XReference, double YReference, double ZReference, double[] wavelengths, double[] energySpectrum, CIEObserver observer, Illuminant illuminant)
X
- Tristimulus value of X.Y
- Tristimulus value of Y.Z
- Tristimulus value of Z.XReference
- the X-reference stimuli required to match each wavelength of the
equi-energy spectrum.YReference
- the Y-reference stimuli required to match each wavelength of the
equi-energy spectrum.ZReference
- the Z-reference stimuli required to match each wavelength of the
equi-energy spectrum.wavelengths
- the range of wavelengths in nm of the spectrum.energySpectrum
- the power of the light at each wavelength in the
spectrum.observer
- the CIE Observer.illuminant
- the CIE Illuminant. An illuminant is spectral output
data is used in the process of calculating the color of illuminated
objects.public CIEColor(CIEColor that)
that
- the CIEColor object to copy.public Illuminant getIlluminant()
public CIEObserver getObserver()
public double getXReference()
public double getYReference()
public double getZReference()
public double[] getWavelengths()
public double[] getEnergySpectrum()
public java.awt.Color getDisplayColor(int displayMode)
displayMode
- Display device model to use. Must be one of the
CIEColor.DISPLAY_ constants.public double getX()
public double getY()
public double getZ()
public double getColorDifference(XYZColor that)
getColorDifference
in class XYZColor
that
- the XYZColor space object used to compute the color
difference.public double getLittleX()
getLittleX
in class XYZColor
public double getLittleY()
getLittleY
in class XYZColor
public double getLittleZ()
getLittleZ
in class XYZColor
Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.