RGBtoLab.zip
Contains two m files:
1) RGBtoXYZ
Convert an image from RGB color space to XYZ color space.
Input image can be either as 3 channels, i.e. a 3D array or individual channels, i.e. THREE 1D arrays.
RGB channels can have common range [0 255] or standard range [0 1].
Two RGB/XYZ Matrices for D65 and D50 Illuminant spectral.
2) XYZtoLab
Convert an image with XYZ format to CIELab format in different illuminant.
Input XYZ image can be either as 3 channels, i.e. a 3D array or individual channels, i.e. THREE 1D arrays.
Reference illuminant tristimulus values for:
A, B, C, D50, D55, D65, D75, E, F2, F7, F11
Cite As
Hamid Mahmoudabadi (2024). RGBtoLab.zip (https://www.mathworks.com/matlabcentral/fileexchange/47099-rgbtolab-zip), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > L*a*b* Color Space >
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 |