How to convert an image from rgb to lab by pixel by pixel matrix???
2 次查看(过去 30 天)
显示 更早的评论
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
回答(2 个)
Matt Kindig
2013-10-25
You can convert rgb to L*A*B colorspace using the makecform() and applycform() functions. From the documentation:
cform = makecform('srgb2lab');
lab_IMG = applycform(IMG,cform);
8 个评论
Image Analyst
2013-10-26
Matt already answered this. See his last comment. There is no difference between an image and a matrix, if that is what you are wondering.
Jan
2013-10-25
This is a perfect question for an internet research: Asking e.g. Google for "Matlab rgb lab" and you will find e.g.:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!