Get_xyz()

CIE Color Matching Functions

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0