Page 209 - Computational Colour Science Using MATLAB
P. 209

196                       COLOUR TOOLBOX

               11.23 getlincam.m (Box 23)



                    % function [out] = getlincam(p,RGB,graphs)
                    % function to compute polynomial fits for camera
                    % grey-scale data. The inputs are p (a set of n by
                    % 1 mean reflectance values) and RGB ( a set of 3 by
                    % n RGB triplets). If graphs is set to ’on’ then
                    % a plot fo the fits is generated








               11.24 lincam (Box 24)



                    % function [RGBout] = lincam(caldata,RGB)
                    % computes linearized camera values using
                    % polynomial transforms obtained from getlincam
                    % caldata is a 3 by 4 matrix produced from getlincam.m
                    % RGB is an n by 3 matrix of RGB values (in range 0-255)








               11.25 gettrc (Box 25)



                    % function [p] =; gettrc(dig,R,W,Solid,n,graphs)
                    % gettrc function to compute the trc for an ink
                    % function [p] =; gettrc(dig,R,W,Solid,n,graphs);
                    % dig is an 1 by n matrix of target area coverages
                    % R is an n by m matrix of measured reflectance values
                    % W is a 1 by m matrix of reflectance for the white substrate
                    % Solid is a 1 by m matrix of reflectance for the solid ink
                    % n is a free parameter 4 0
                    % graphs =; ’on’ for graphical display
                    % p is a matrix containing the coefficients of a polynomial
                    to
                    % relate target coverage to actual coverage
   204   205   206   207   208   209   210   211   212   213   214