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.
0 个评论
采纳的回答
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.
2 个评论
Image Analyst
2019-8-16
And then, to display:
imshow(a, []);
axis('on', 'image');
title('a channel', 'FontSize', 20);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!