the image or output is not displaying ? if i remove function line it showing error like if max(max(R)) > 1.0 || max(max(G)) > 1.0 || max(max(B)) > 1.0

1 次查看(过去 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');

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colorbar 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by