MATLAB Answers

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

조회 수: 2(최근 30일)
MH K
MH K 17 Jul 2019
댓글: MH K 16 Aug 2019
I want to get a* layer to continue processing.

  댓글 수: 0

로그인 to comment.

채택된 답변

Jarrod Dowdall
Jarrod Dowdall 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.

  댓글 수: 2

Image Analyst
Image Analyst 16 Aug 2019
And then, to display:
imshow(a, []);
axis('on', 'image');
title('a channel', 'FontSize', 20);

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by