Why does gif turn into grayscale when i use the imread or the imshow command?

2 次查看(过去 30 天)
I didn't make the animation from mathlab. I downloaded it externally with 6 seconds of animation. Did it ACTUALLY convert my gif into a grayscale or is it just showing in matlab due to some error.
a = imread('gframe.gif');
imshow(a)
Output
  4 个评论
Walter Roberson
Walter Roberson 2021-9-27
[a, cmap] = imread('gframe.tif');
image(a);
colormap(cmap);
Notice that I did not use a variable named colormap as that is the name of the function needed to change the current colormap.

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by