How do I convert rgb to Lab and display only a* layer with matlab?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MH K
el 17 de Jul. de 2019
Comentada: MH K
el 16 de Ag. de 2019
I want to get a* layer to continue processing.
0 comentarios
Respuesta aceptada
Jarrod Dowdall
el 16 de Ag. de 2019
Perhaps the easiest way would be to use the function rgb2lab() in matlab. Note that you will need the Image Processing Toolbox.
Lab = rgb2lab(rgb);
a = Lab(:,:,2);
I hope that helps you get started.
2 comentarios
Image Analyst
el 16 de Ag. de 2019
And then, to display:
imshow(a, []);
axis('on', 'image');
title('a channel', 'FontSize', 20);
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Processing and Computer Vision 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!