You are here : matlabImage Processingrgb2lab

rgb2lab() - Image Processing

lab = rgb2lab(rgb) converts RGB values to CIE 1976 L*a*b* values.

lab = rgb2lab(rgb,Name,Value) specifies additional options with one or more Name,Value pair arguments.

Code Generation support: Yes.MATLAB Function Block support: Yes.


Syntax

lab = rgb2lab(rgb) 
lab = rgb2lab(rgb,Name,Value) 


Example

Read RGB image into the workspace.


Output / Return Value


Limitations


Alternatives / See Also


Reference