colormatch - Script command

Returns the X, Y and Z tristimulus values calculated for a given spectral power distribution (power per unit area per unit wavelength) and a selected set of color matching functions. The colormatch function assumes that the units of wavelength for the spectral power distribution are nanometers, for example, W/(m
2
nm). The available color functions are the CIE 1931 and CIE 1964.

The X, Y, Z values have dimensions of power per unit area, in the units used for the spectral power distribution. The expressions for calculating the X, Y and Z values are: