Frame of Animated Gif
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
2 Commenti
Jan
il 15 Gen 2012
Please explain again, what you want to get? The number of images an animated GIF consists of?
Risposta accettata
Walter Roberson
il 16 Gen 2012
Read all of the frames using imread(), and then look at the size of what is returned.
1 Commento
Jan
il 16 Gen 2012
Then "get the frame number" is equivalent to "get the number of frames" - correct? Actually a question, which should be answered by the OP...
Più risposte (1)
Ju
il 23 Gen 2012
2 Commenti
Walter Roberson
il 23 Gen 2012
allframedata = imread('YourFile.GIF', 'frames', 'all');
alldimensions = size(allframedata);
number_of_frames = alldimensions(end);
Vedere anche
Categorie
Scopri di più su Animation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!