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 LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox >
- Image Processing and Computer Vision > Image Processing Toolbox > Display and Exploration >
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Color >
Find more on Image Processing Toolbox in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
