File Exchange

image thumbnail

RGBtoLab.zip

version 1.0.0.0 (2.21 KB) by Hamid Mahmoudabadi
Convert images in RGB format to CIELab format with different reference illuminant tristimulus values

1 Download

Updated 30 Jun 2014

View License

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 (2020). RGBtoLab.zip (https://www.mathworks.com/matlabcentral/fileexchange/47099-rgbtolab-zip), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Hamid Mahmoudabadi

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!