Page 206 - Computational Colour Science Using MATLAB
P. 206
CMCCAT00.M (BOX 16) 193
11.14 cie00de.m (Box 14)
% function [de,dl,dc,dh] = cie00de(lab1,lab2,paral,
parac,parah)
% computes colour difference from CIELAB values
% using the CIEDE2000 formula
% lab1 and lab2 must be 3 by 1 or 1 by 3 matrices
% and contain L*, a* and b* values
% The dl, dc and dh components are CIEDE2000 deltas
% The defaults for paral, parac and parah are 1
% see also cielabde, cmcde, and cie94de
11.15 cmccat97.m (Box 15)
% function [xyzc] = cmccat97(xyz,xyzt,xyzr,la,f)
% implements the CMCCAT97 chromatic adaptation transform
% operates on 1 by 3 matrix xyz containing tristimulus
% values of the stimulus under the test illuminant
% xyzt and xyzr are 1 by 3 matrices containing the
% white points for the test and reference conditions
% f has default value 1
% la is the luminance of the adapting test field
% and has default value of 100
% xyzc contains the tristimulus values of the
% stimulus under the reference illuminant
% see also cmccat00
11.16 cmccat00.m (Box 16)
% function [xyzc] = cmccat00(xyz,xyzt,xyzr,lt,lw,f)
% implements CMCCAT2000 chromatic adaptation transform
% operates on 1 by 3 matrix xyz containing tristimulus
% values of the stimulus under the test illuminant
% xyzt and xyzr are 1 by 3 matrices containing the
% white points for the test and reference conditions
% f has default value 1