Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
The output for this is not displayed ?
조회 수: 2 (최근 30일)
이전 댓글 표시
rgb = imread('street2.jpg'); %it is one of the MATLAB examples
[L, a, b] = RGB2Lab(rgb);
%the rest is for presentation, not part of how you use the routine
figure(1);
imagesc(L);
colormap(gray(256));
colorbar();
title('L plane');
figure(2);
imagesc(a);
colormap(gray(256));
colorbar();
title('a plane');
figure(3);
imagesc(b);
colormap(gray(256));
colorbar();
title('b plane');
댓글 수: 2
Wanbin Song
2015년 9월 3일
What do you expect? Matrix for image 'street2.jpg' is saved correctly in variable rgb.
Stephen23
2015년 9월 3일
@venmal devi: this time I formatted your code properly, but in future you can do it yourself by selecting the code text and clicking the {} Code button that you will find above the textbox.
답변 (1개)
Walter Roberson
2015년 9월 4일
What error message are you encountering?
Did you repair your RGB2Lab.m after having deleted the "function" line in your previous work?
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!