Frame of Animated Gif
Show older comments
Hi, all. I want to make a steganography program using LSB in matlab. I use animated GIF for the cover object. As we know that Animated GIF is a file that consists of many images. So, can anyone tell me: How to get the frame number of this file in matlab? Thanks before.
Accepted Answer
More Answers (1)
Ju
on 23 Jan 2012
0 votes
2 Comments
Walter Roberson
on 23 Jan 2012
allframedata = imread('YourFile.GIF', 'frames', 'all');
alldimensions = size(allframedata);
number_of_frames = alldimensions(end);
Ju
on 23 Jan 2012
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!