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
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 Center 和 File Exchange 中查找有关 Orange 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!