MATLAB Answers

0

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

MH K 님이 질문을 제출함. 17 Jul 2019
최근 활동 MH K 님이 댓글을 추가함. 16 Aug 2019
I want to get a* layer to continue processing.

  댓글 수: 0

로그인 to comment.

답변 수: 1

 채택된 답변

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

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

로그인 to comment.



Translated by