Page 205 - Computational Colour Science Using MATLAB
P. 205

192                       COLOUR TOOLBOX

               11.11 dhpolarity (Box 11)



                    % function [p] = dhpolarity(lab1,lab2)
                    % computes polarity of hue difference
                    % lab1 and lab2 must be 3 by 1 or 1 by 3 matrices
                    % and contain L*, a* and b* values
                    % p is +1 if the hue of the trial (lab2) is anticlockwise
                    % from the standard (lab1) and -1 otherwise










               11.12 cmcde.m (Box 12)



                    % function [de,dl,dc,dh] = cmcde(lab1,lab2,paral,parac)
                    % computes colour difference from CIELAB values
                    % using CMC(l:c) 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 CMC deltas
                    % The defaults for paral and parac are 1
                    % see also cielabde, cie94de, and cie00de










               11.13 cie94de.m (Box 13)



                    % function [de,dl,dc,dh] = cie94de(lab1,lab2)
                    % computes colour difference from CIELAB values
                    % using the CIE94 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 CIE94 deltas
                    % see also cielabde, cmcde, and cie00de
   200   201   202   203   204   205   206   207   208   209   210