MATLAB: How to convert RGB to CIE Lab color space. color space conversionImage Processing Toolbox Is there any difference between these two procedures of rgb to lab conversion. 1. colorTransform = makecform('srgb2lab'); lab = applycform(rgbImage, colorTransform); 2. rgb2lab Best Answer makecform('srgb2lab') uses WhitePoint 'ICC' by default. rgb2lab() uses whitepoint 'D65' by default.http://www.mathworks.com/help/images/ref/makecform.htmlhttps://en.wikipedia.org/wiki/ICC_profile "a 16-bit fractional approximation of D50" Related SolutionsMATLAB: How to convert RGB to CIE Lab color space Convert the image to L*a*b* color space using makecform and applycform.colorTransform = makecform('srgb2lab');lab = applycform(rgbImage, colorTransform);Here's a full demo here: http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html MATLAB: How to convert to the XYZ color space from a non-standard RGB color profile using the Image Processing Toolbox 4.1 (R13SP1) To convert from a non-standard RGB color profile to the device-independent XYZ profile connection space, use the following code:InputProfile = iccread('myRGB.icc');C = makecform('mattrc',InputProfile.MatTRC, 'direction', 'forward');Note that this will only work if the ICC profile includes a MatTRC value. Related QuestionClarification regarding masking an imageProblems with adapthisteq and RGB converted to LAB spaceKmeans clustering on an image in hsv color spaceHow to choose specific color to display when using kmean clustering color segmentationHow to convert CMYK image to RGBHow to filter an RGB image and transform into an BW one.
Best Answer