MATLAB Answers

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

1 view (last 30 days)
MH K on 17 Jul 2019
Commented: MH K on 16 Aug 2019
I want to get a* layer to continue processing.


Sign in to comment.

Accepted Answer

Jarrod Dowdall
Jarrod Dowdall on 16 Aug 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.

More Answers (0)


Translated by