Page 210 - Computational Colour Science Using MATLAB
P. 210
R2XYZ (BOX 26) 197
11.26 r2xyz (Box 26)
% function [P] =; xyz2r(XYZ, obs)
% estimates refletcance P from XYZ trimulus values
% matrix XYZ must be n by 3
% illuminants A, C, D50, D55, D65, D75, F2, F7, F9
% set obs to ’d65___64 for D65 and 1964, for example
% matrix P is returned as an n by 31 matrix