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!