org.sunflow.image
Class SpectralCurve
java.lang.Objectorg.sunflow.image.SpectralCurve
public abstract class SpectralCurve
extends java.lang.Object
This class is an abstract interface to sampled or analytic spectral data.
abstract float | sample(float lambda)- This function determines the actual spectral curve data.
|
XYZColor | toXYZ()- Convert this curve to a tristimulus CIE XYZ color by integrating against
the CIE color matching functions.
|
sample
public abstract float sample(float lambda)
This function determines the actual spectral curve data. Note that the
lambda parameter is assumed to be in nanometers.
lambda - wavelength to sample in nanometers
- the value of the spectral curve at this point
toXYZ
public final XYZColor toXYZ()
Convert this curve to a tristimulus CIE XYZ color by integrating against
the CIE color matching functions.
- XYZColor that represents this spectra