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

1 回表示 (過去 30 日間)
MH K
MH K 2019 年 7 月 17 日
コメント済み: MH K 2019 年 8 月 16 日
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.
  2 件のコメント
Image Analyst
Image Analyst 2019 年 8 月 16 日
And then, to display:
imshow(a, []);
axis('on', 'image');
title('a channel', 'FontSize', 20);
MH K
MH K 2019 年 8 月 16 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage 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