public class AdvancedColor
extends java.lang.Object
Constructor and Description |
---|
AdvancedColor()
Private constructor; no instances allowed.
|
Modifier and Type | Method and Description |
---|---|
void |
allocateBuffers(int numberOfPixels) |
static CIEColor |
computeEmissiveChromaticity_ORIGINAL(double[] energyWavelengths,
double[] energySpectrum,
CIEObserver observer,
Illuminant illuminant)
Computes the tristimulus response to the given emissive energy spectrum.
|
CIEColor |
computeEmissiveChromaticity(CIEObserver observer,
Illuminant illuminant) |
static CIEColor |
computeEmissiveChromaticity(double[] energyWavelengths,
double[] energySpectrum,
CIEObserver observer,
Illuminant illuminant)
Computes the tristimulus response to the given emissive energy spectrum.
|
static CIEColor |
computeReflectiveChromaticity_ORIGINAL(double[] energyWavelengths,
double[] energySpectrum,
CIEObserver observer,
Illuminant illuminant) |
CIEColor |
computeReflectiveChromaticity(CIEObserver observer,
Illuminant illuminant) |
static CIEColor |
computeReflectiveChromaticity(double[] reflectionWavelengths,
double[] reflectionSpectrum,
CIEObserver observer,
Illuminant illuminant)
Computes the tristimulus response to the given reflective energy spectrum.
|
void |
setBufferElements(int index,
double energyWavelengthPixel,
double energySpectrumPixel) |
public AdvancedColor()
public void allocateBuffers(int numberOfPixels)
public void setBufferElements(int index, double energyWavelengthPixel, double energySpectrumPixel)
public static CIEColor computeEmissiveChromaticity(double[] energyWavelengths, double[] energySpectrum, CIEObserver observer, Illuminant illuminant)
energyWavelengths
- Wavelengths that correspond to the energy
spectrum.energySpectrum
- Sampled energy spectrum (e.g. from Irradiance).observer
- The CIE observer model to use for measuring color.illuminant
- Theoretical illuminant needed to compute the emissive
chromaticity to scale the reference values of X, Y, Z used in calculating
the tristimulus values.public static CIEColor computeEmissiveChromaticity_ORIGINAL(double[] energyWavelengths, double[] energySpectrum, CIEObserver observer, Illuminant illuminant)
energyWavelengths
- Wavelengths that correspond to the energy
spectrum.energySpectrum
- Sampled energy spectrum (e.g. from Irradiance).observer
- The CIE observer model to use for measuring color.illuminant
- Theoretical illuminant needed to compute the emissive
chromaticity to scale the reference values of X, Y, Z used in calculating
the tristimulus values.public CIEColor computeEmissiveChromaticity(CIEObserver observer, Illuminant illuminant)
public static CIEColor computeReflectiveChromaticity(double[] reflectionWavelengths, double[] reflectionSpectrum, CIEObserver observer, Illuminant illuminant)
reflectionWavelengths
- Wavelengths that correspond to the energy
spectrum.reflectionSpectrum
- Sampled energy spectrum (e.g. from Irradiance).observer
- The CIE observer model to use for measuring color.illuminant
- Theoretical illuminant to scale the X, Y, Z result.public static CIEColor computeReflectiveChromaticity_ORIGINAL(double[] energyWavelengths, double[] energySpectrum, CIEObserver observer, Illuminant illuminant)
public CIEColor computeReflectiveChromaticity(CIEObserver observer, Illuminant illuminant)
Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.