Page 202 - Computational Colour Science Using MATLAB
P. 202

11





             Colour Toolbox





             The following list details the functions that have been written as part of this
             book. These programs form a computational toolbox. All these functions can be
             downloaded from http://www.colourware.co.uk/compute/ and from
             http://www.mathworks.com/matlabcentral/. To install the toolbox we
             recommend that these files be placed in a directory called colour in MATLAB’s
             toolbox directory. For example, this may be c:\Program Files\MATLABp65\
             toolbox\colour\ but the exact pathname will depend upon how MATLAB was
             installed. If the colour directory is then added to MATLAB’s environment path,
             then the colour toolbox will be available as any other toolbox.



             11.1   cband.m (Box 1)



                  % function [cP] = cband(P)
                  % applies Stearns Stearns spectral bandpass correction
                  % operates on matrix P of dimensions 1 by n
                  % where n is the number of wavelengths
                  % returns corrected matrix cP




             11.2   pinterp.m (Box 2)



                  % function [s] = pinterp(p)
                  % applies interpolation to double the sampling
                  % rate of the n by 1 matrix p
                  % returns interpolated matrix s


             Computational Colour Science Using MATLAB. By Stephen Westland and Caterina Ripamonti.
             & 2004 John Wiley & Sons, Ltd: ISBN 0 470 84562 7
   197   198   199   200   201   202   203   204   205   206   207