Showing GIF images in GUI

6 ビュー (過去 30 日間)
Lolipop
Lolipop 2014 年 12 月 30 日
コメント済み: Lolipop 2014 年 12 月 30 日
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 件のコメント
Sean de Wolski
Sean de Wolski 2014 年 12 月 30 日
What MATLAB version are you using?
Lolipop
Lolipop 2014 年 12 月 30 日
R2014b

サインインしてコメントする。

採用された回答

Sean de Wolski
Sean de Wolski 2014 年 12 月 30 日
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 件のコメント
Lolipop
Lolipop 2014 年 12 月 30 日
you're helping me so much...thank you :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBlue についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by