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.
Mark Ruzon (2021). RGB2Lab (https://www.mathworks.com/matlabcentral/fileexchange/24009-rgb2lab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!