This one

colorTransform = makecform('srgb2lab'); lab = applycform(rgbImage, colorTransform);

or

rgb = imread('peppers.png');

Convert the RGB image to the L*a*b* color space.

lab = rgb2lab(rgb);

imshow(lab(:,:,1),[0 100]).

what is the difference? Thanks

More Sahar Pordeli Behrouz's questions See All
Similar questions and discussions