Rank: 216874 based on 0 downloads (last 30 days) and 0 file submitted
photo

x.d

E-mail
Company/University
hust

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by x.d
Updated File Comments Rating
01 Apr 2012 Colorspace Transformations Transform colors between sRGB, YCbCr, YPbPr, YUV, YIQ, HSV, HSL, HSI, XYZ, Lab, Luv, LCH, CAT02 LMS Author: Pascal Getreuer

Thanks for your great work!
I have used the function “colorspace( )” which can be found in the page of "http://www.mathworks.com/matlabcentral/fileexchange/28790-colorspace-transformations" as follows:

rgb = imread('peppers.png');
C = makecform('srgb2lab');
lab = applycform(rgb,C);

lab_2 = colorspace('lab<-rgb', rgb);
lab_3 = lab2uint8(lab_2);

I was surprised that the values in lab and lab_3 were quite different. I want to know the mistake in my code or my logical.

Thanks a lot.

Contact us