How to convert Lab to RGB image and its matlab code?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
somasekar jalari
el 28 de Oct. de 2015
Comentada: Image Analyst
el 4 de En. de 2017
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 comentarios
Respuesta aceptada
Thorsten
el 28 de Oct. de 2015
help cform tells you
rgb = imread('peppers.png');
cform = makecform('srgb2lab');
lab = applycform(rgb, cform);
7 comentarios
Image Analyst
el 4 de En. de 2017
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.
Más respuestas (2)
Image Analyst
el 28 de Oct. de 2015
Try this
labImage = rgb2lab(rgbImage);
3 comentarios
zee falcon
el 4 de En. de 2017
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
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!