Frame of Animated Gif
조회 수: 5 (최근 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!