Computational Colour Science using MATLAB - toolbox
Introduction
This page provides companion files for the textbook Computational Colour Science using MATLAB written by Stephen Westland and Caterina Ripamonti and published by John Wiley. The files form a colour toolbox. 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 on your machine. If the colour directory is then added to MATLAB’s environment path then the colour toolbox will be available like any other toolbox.
Download
All of the these functions can be downloaded here as a zip file. The latest file was uploaded on 6th July 2005. This includes various corrections of typos and bug fixes and will therefore differ somewhat from the code as published in the text book. Please check back here for regular updates. A discussion of the various changes that have been made can be seen in the forum.
File List
- cband - applies Stearns Stearns spectral bandpass correction
- pinterp - applies interpolation to double the sampling of a spectral function
- r2xyz - computes XYZ from reflectance using a table of weights
- plocus - computes spectral locus using interpolated weights
- xyz2lab - computes CIELAB LAB values from XYZ tristimulus values
- lab2xyz - computes XYZ tristimulus values from CIELAB LAB values
- xyz2luv - computes CIELUV Luv values from XYZ tristimulus values
- cartopol - converts a*b* or u*v* into the polar coordinates
- pol2car - converts polar coordinates into cartesian coordinates
- cielabde - computes colour difference from CIELAB values
- dhpolarity - computes polarity of hue difference
- cmcde - computes CMC colour difference from CIELAB values
- cie94de - computes CIE94 colour difference from CIELAB values
- cie00de - computes CIEDE2000 colour difference from CIELAB values
- cmccat97 - implements the CMCCAT97 chromatic adaptation transform
- cmccat00 - implements CMCCAT2000 chromatic adaptation transform
- ciecam97s - implements the CIECAM97s colour appearance model
- gogtest - computes error between measured and predicted linearized dac values
- compgog - computes linearized RGB values
- rgb2xyz - converts RGB DACS from a monitor to CIE XYZ
- xyz2rgb - converts XYZ to RGB DACS for a monitor
- compgog - computes the normalized RGB values from the linearized RGB values
- getlincam - function to compute polynomial fits for camera characterization
- lincam - computes linearized camera values
- gettrc- function to compute the trc for an ink
- xyz2r - estimates refletcance P from XYZ trimulus values