フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

The output for this is not displayed ?

2 ビュー (過去 30 日間)
venmal devi
venmal devi 2015 年 9 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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
Wanbin Song 2015 年 9 月 3 日
What do you expect? Matrix for image 'street2.jpg' is saved correctly in variable rgb.
Stephen23
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
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?

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by