Spectral and XYZ Color Functions
by Jeff Mather
01 Mar 2005
(Updated 08 Nov 2010)
Label plots with spectra. Convert wavelengths to RGB. Functions for color matching and illuminants.
|
Watch this File
|
| File Information |
| Description |
This is the beginning of a set of functions for working with color as wavelengths (spectral color) and in the xyY and XYZ color spaces.
Current functionality includes:
spectrumLabel - Add a color bar containing the visible spectrum to a plot's X axis.
spectrumRGB - Converts wavelengths of light to equivalent RGB values (in the sRGB space).
colorMatchFcn - Raw data of popular color matching functions (spectra to XYZ) for various standard observers:
* CIE 1931 2-degree
* CIE 1964 10-degree
* CIE 1931 2-degree modified by Judd (1951)
* CIE 1931 2-degree modified by Judd (1951) and Vos (1978)
* Stiles and Burch 2-degree (1955)
* Stiles and Burch 10-degree (1959)
illuminant - Raw data for the A, D65, and E standard illuminants. |
| Acknowledgements |
This submission has inspired the following:
Perceptually improved colormaps , MKPJ - perceptually improved Jet colormap
|
| Required Products |
Image Processing Toolbox
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (16) |
| 21 Jul 2005 |
Wu John
|
|
|
| 01 Oct 2005 |
colour rainbow
|
|
|
| 18 Oct 2005 |
marwan reyadh
|
|
|
| 28 Oct 2005 |
Levent Onural
|
|
|
| 06 Apr 2006 |
ben taylor
|
|
|
| 03 Jan 2007 |
Vishnuvenkatesh Dhage
|
|
|
| 26 Apr 2007 |
NOne None
|
|
|
| 20 Jun 2007 |
jeongwoon lee
|
|
|
| 12 Dec 2007 |
Neeraj Adsul
|
|
|
| 07 Oct 2008 |
Franck Riberi
|
|
|
| 19 May 2010 |
Mike Vasilescu
|
|
|
| 20 Sep 2010 |
Matteo Niccoli
|
|
|
| 04 Sep 2011 |
springface
|
|
|
| 04 Sep 2011 |
springface
|
|
|
| 01 Jan 2012 |
Li
|
|
|
| 07 Feb 2012 |
Guido
|
|
|
| Updates |
| 08 Nov 2010 |
BSD License |
|
Contact us at files@mathworks.com