How to convert Lab to RGB image and its matlab code?
3 次查看(过去 30 天)
显示 更早的评论
In my program,first converted rgb image to lab but after processing the image , i want convert Lab to rgb image. so i request you, pls provide matlab code for converting lab to rgb image?
0 个评论
采纳的回答
Thorsten
2015-10-28
help cform tells you
rgb = imread('peppers.png');
cform = makecform('srgb2lab');
lab = applycform(rgb, cform);
7 个评论
Image Analyst
2017-1-4
zee, you can also use rgb2lab(). But like Steven asked, what output are you expecting? You get an image. And do see that image you can use imshow(), or you can just look at it's values in the variable editor in the workspace. But no output will get "shown" unless you do one of those two things. Otherwise all you get is a new variable.
更多回答(2 个)
Image Analyst
2015-10-28
Try this
labImage = rgb2lab(rgbImage);
3 个评论
zee falcon
2017-1-4
I want to convert rgb images to lab. But above code is not working.It not shows any output after the conversion.Help me out
另请参阅
类别
在 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!