like i have image...i have to read it in matlab...then if i want to change the rgb values of the image to lab values...then what will b its steps.... i mean L* A* B* values
sorry...it is working....bt i not only want to convert the L* A* b* color space value from rgb but also convert it pixel by pixel matrix from rgb to l*a*b* value....how to do it?? can u please tell. i mean by your coding the image is changing....then if i want to plot pixel by pixel matrix from 0-255 from rgb image and then want to convert them into l*a*b values in pixel by pixel matrix form what should i do???
I have no idea what pixel by pixel means in this context. The commands I provided above convert an RGB image to L*A*B* all at once, so every pixel is modified to the new colorspace. Both the RGB and L*A*B* images should range from 0-255.
It is not clear what it means to "plot pixel by pixel matrix". Do you just want to display the image? If so, just use image() or imshow().
i mean to say....for rgb image we can plot matrix from 0-255...then if we convert rgb to L*a*b then we can get another matrix from the image of converted L*a*b...to i want to know how to do that?i mean i how to plot matrix of a image...then how we can change that matrix to its correspond l*a*b values using coding in matlab
i mean to say....for rgb image we can plot matrix from 0-255...then if we convert rgb to L*a*b then we can get another matrix from the image of converted L*a*b...to i want to know how to do that?i mean i how to plot matrix of a image...then how we can change that matrix to its correspond l*a*b values using coding in matlab
look what u have provided it is working...it directly converts a rgb image to its L*a*b color space value... bt if want to the same thing in matrix form then what will b the coding
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
1 Comment
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/90863-how-to-convert-an-image-from-rgb-to-lab-by-pixel-by-pixel-matrix#comment_175434
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/90863-how-to-convert-an-image-from-rgb-to-lab-by-pixel-by-pixel-matrix#comment_175434
Sign in to comment.