Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

The output for this is not displayed ?

2 vues (au cours des 30 derniers jours)
venmal devi
venmal devi le 3 Sep 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
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 commentaires
Wanbin Song
Wanbin Song le 3 Sep 2015
What do you expect? Matrix for image 'street2.jpg' is saved correctly in variable rgb.
Stephen23
Stephen23 le 3 Sep 2015
@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.

Réponses (1)

Walter Roberson
Walter Roberson le 4 Sep 2015
What error message are you encountering?
Did you repair your RGB2Lab.m after having deleted the "function" line in your previous work?

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by