Get_xyz()

CIE Color Matching Functions
1.6K Downloads
Updated 26 Jun 2015

View License

Function to return, and optionally plot, the 1931 CIE color matching functions.
Reference: https://en.wikipedia.org/wiki/CIE_1931_color_space#Color_matching_functions
You can use these curves to build X, Y, and Z images from a collection of individual spectral images.
With those X, Y, and Z images, you can then get the RGB image with the xyz2rgb() function of the Image Processing Toolbox. No toolboxes are required for this script.

Cite As

Image Analyst (2026). Get_xyz() (https://www.mathworks.com/matlabcentral/fileexchange/51560-get_xyz), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0