MATLAB: Indexed Images for Cielab Color Space

cielabcolor spaceImage Processing Toolboxindexed images

Hi!
How can I build a function indexed image for other color spaces such as CIELAB? any help..?

Best Answer

I'm not sure what that means. You can convert a color RGB image into hsv with rgb2hsv()
hsvImage = rgb2hsv(rgbImage);
and into lab with makecform():
cform = makecform('srgb2lab');
labImage = applycform(rgbImage,cform);
Creating an indexed image doesn't make any sense. You'd have to create a grayscale image and then use the proper colormap, but why? Like my demo shows, you can create RGB images that are better.
See my attached demo.