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 (2024). Get_xyz() (https://www.mathworks.com/matlabcentral/fileexchange/51560-get_xyz), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
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 >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |