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

1 visualizzazione (ultimi 30 giorni)
I want to get a* layer to continue processing.

Risposta accettata

Jarrod Dowdall
Jarrod Dowdall il 16 Ago 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.

Più risposte (0)

Categorie

Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by