How do I convert rgb to Lab and display only a* layer with matlab?

1 vue (au cours des 30 derniers jours)
MH K
MH K le 17 Juil 2019
Commenté : MH K le 16 Août 2019
I want to get a* layer to continue processing.

Réponse acceptée

Jarrod Dowdall
Jarrod Dowdall le 16 Août 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 commentaires
Image Analyst
Image Analyst le 16 Août 2019
And then, to display:
imshow(a, []);
axis('on', 'image');
title('a channel', 'FontSize', 20);
MH K
MH K le 16 Août 2019
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing and Computer Vision dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by