


Create display primaries consistent with specified XYZ values
[newCRT,wave] = ieCRTfromXYZ(displayXYZ,wave)
Given display XYZ primaries (displayXYZ), make a physically realizable
set of display spectral power distributions.
displayXYZ contains the desired red, green and blue primary XYZ values in
the rows.
We allow these displays to have negative energy in some of the primaries
because they are theoretical and only intended to help along with the XYZ
calculations.
Example:
% Each primary is XYZ in a col
displayXYZ = colorTransformMatrix('lrgb2xyz')';
displayXYZ*ones(3,1)
% Primary SPD in cols
[sRGBDisplay,wave] = ieCRTfromXYZ(displayXYZ);
figure(1); plot(wave,sRGBDisplay);
ieXYZFromEnergy(sRGBDisplay',wave) - displayXYZ'
(Transposition is tragic consequence of the ieXYZFromEnergy() routine.)
Copyright ImagEval Consultants, LLC, 2003.