Error when trying to display an gif image in matlab
1 次查看(过去 30 天)
显示 更早的评论
i'm tried to display gif image but i got the following error
for k=1:7
[img,map] = imread('animate.gif','frames',k);
save(sprintf('img%d.mat',k),'img');
save('map.mat','map');
figure;
implay(img,map);
end
Error using readgif>read_multiframe_gif (line 70)
Java exception occurred:
java.lang.ArrayIndexOutOfBoundsException
Error in readgif (line 32)
[X,map] = read_multiframe_gif(filename);
Error in imread (line 415)
[X, map] = feval(fmt_s.read, filename, extraArgs{:});
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!