Showing GIF images in GUI

6 vues (au cours des 30 derniers jours)
Lolipop
Lolipop le 30 Déc 2014
Commenté : Lolipop le 30 Déc 2014
I have gif images which are all black and white and I am trying to show them using this code:
for j=1:12
[I cmap] = imread(strcat(path,filename),'frames','all');
subplot(4,3,j)
image(I);
colormap(cmap);
axis off;
axis image;
end
For some images it works but for some displays only black picture
ALL IMAGES ARE BLACK AND WHITE AND IN .GIF FORMAT
If someone knows where is the problem help me please
  2 commentaires
Sean de Wolski
Sean de Wolski le 30 Déc 2014
What MATLAB version are you using?
Lolipop
Lolipop le 30 Déc 2014
R2014b

Connectez-vous pour commenter.

Réponse acceptée

Sean de Wolski
Sean de Wolski le 30 Déc 2014
for j=1:12
[I cmap] = imread(strcat(path,filename),'frames','all');
ax = subplot(4,3,j);
image(I);
colormap(ax,cmap);
axis off
axis image
end
Starting 14b, you can have a separate colormap for each axes, so try this.
  1 commentaire
Lolipop
Lolipop le 30 Déc 2014
you're helping me so much...thank you :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Blue dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by