Page 116 - Computational Colour Science Using MATLAB
P. 116
IMPLEMENTATIONS AND EXAMPLES 103
for j = 1:21
for i = 1:21
lt = x(i);
lw = y(j);
d = f*(0.08*log10(lt+lw) + 0.76 - 0.45*(lt-lw)/
(lt+lw));
if (d>1)
d=1;
end
z(i,j) = d;
end
end
z(1,1) = 1;
surf(x,y,z)
colormap(‘grey’)
Figure 6.6 The dependence of the degree of adaptation on the adopted test and reference
luminance values for CMCCAT2000