display an animated image

all i want to do is to display an animated image using any available methodd without losing the effect or the animation on the image...probably gif format....but i have tried a = imread('car.gif'); imshow(a); but the animation becomes static thanks..

回答(1 个)

Oleg Komarov
Oleg Komarov 2011-7-28

1 个投票

  • [a,b] = imread('http://www.animatedgif.net/arrowpointers/arrow20_e0.gif','frames','all');
  • implay(a)

3 个评论

what am seeing looks like a web.. address..if am very sure or is it a directory on desktop
YourFileName = 'C:\Users\oeyewale\Documents and Settings\MyGif.gif';
[a,b] = imread(YourFileName, 'frames', 'all');
implay(a)
Adjust file name as needed.
...and this is proprietary to 'Image Processing Toolbox'...

请先登录,再进行评论。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by