% function [ref] = tristimulus(illuminant, observer) % function [ref] = tristimulus(illuminant, observer) ref = [0.95047 1 1.08883]'; switch observer case {'2°'} switch illuminant case {'A'} ref = [1.09850 1 0.35585]'; case {'C'} ref = [0.98074 1 1.18232]'; case {'D50'} ref = [0.96422 1 0.82521]'; case {'D55'} ref = [0.95682 1 0.92149]'; case {'D65'} ref = [0.95047 1 1.08883]'; case {'D75'} ref = [0.94972 1 1.22638]'; case {'F2'} ref = [0.99187 1 0.67395]'; case {'F7'} ref = [0.95044 1 1.08755]'; case {'F11'} ref = [1.00966 1 0.64370]'; case {'Incandescent'} % same as 'A' ref = [1.09850 1 0.35585]'; case {'Daylight'} % same as 'D65' ref = [0.95047 1 1.08883]'; case {'Fluorescent'} % same as 'F2' ref = [0.99187 1 0.67395]'; otherwise ref = [0.95047 1 1.08883]'; end; case {'10°'} switch illuminant case {'A'} ref = [1.11144 1 0.35200]'; case {'C'} ref = [0.97285 1 1.16145]'; case {'D50'} ref = [0.96720 1 0.81427]'; case {'D55'} ref = [0.95799 1 0.90926]'; case {'D65'} ref = [0.94811 1 1.07304]'; case {'D75'} ref = [0.94416 1 1.20641]'; case {'F2'} ref = [1.03280 1 0.69026]'; case {'F7'} ref = [0.95792 1 1.07687]'; case {'F11'} ref = [1.03866 1 0.65627]'; case {'Incandescent'} % same as 'A' ref = [1.11144 1 0.35200]'; case {'Daylight'} % same as 'D65' ref = [0.94811 1 1.07304]'; case {'Fluorescent'} % same as 'F2' ref = [1.03280 1 0.69026]'; otherwise ref = [0.94811 1 1.07304]'; end; end;