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

1 次查看(过去 30 天)
I want to get a* layer to continue processing.

采纳的回答

Jarrod Dowdall
Jarrod Dowdall 2019-8-16
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by