RGB2Lab
Version 1.0.0.0 (1.86 KB) by
Mark Ruzon
Converts an image from the RGB color space to the CIELAB color space.
CIELAB is a nonlinear transformation of RGB where the Euclidean distance between two colors is equal to their perceptual distances (for distances less than ~10 units). Algorithms that process color images often produce better results in CIELAB.
The equations implemented here come from Charles Poynton's Colour FAQ.
Cite As
Mark Ruzon (2025). RGB2Lab (https://www.mathworks.com/matlabcentral/fileexchange/24009-rgb2lab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Color Segmentation >
Find more on Color Segmentation in Help Center and MATLAB Answers
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 |