Frame of Animated Gif
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Jan
2012 年 1 月 15 日
Please explain again, what you want to get? The number of images an animated GIF consists of?
採用された回答
Walter Roberson
2012 年 1 月 16 日
Read all of the frames using imread(), and then look at the size of what is returned.
1 件のコメント
Jan
2012 年 1 月 16 日
Then "get the frame number" is equivalent to "get the number of frames" - correct? Actually a question, which should be answered by the OP...
その他の回答 (1 件)
Ju
2012 年 1 月 23 日
2 件のコメント
Walter Roberson
2012 年 1 月 23 日
allframedata = imread('YourFile.GIF', 'frames', 'all');
alldimensions = size(allframedata);
number_of_frames = alldimensions(end);
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!