Frame of Animated Gif

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
Jan 2012년 1월 15일
Please explain again, what you want to get? The number of images an animated GIF consists of?
Ju
Ju 2012년 1월 23일
i want to get the nnumber of frames and put it in a variable..

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 16일

0 개 추천

Read all of the frames using imread(), and then look at the size of what is returned.

댓글 수: 1

Jan
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
Ju 2012년 1월 23일

0 개 추천

Thanks for your answer and comments. But, i'm still confuse about it. Can you tell me with an example in source code, how to get the number of frames and put it in a variable?

댓글 수: 2

Walter Roberson
Walter Roberson 2012년 1월 23일
allframedata = imread('YourFile.GIF', 'frames', 'all');
alldimensions = size(allframedata);
number_of_frames = alldimensions(end);
Ju
Ju 2012년 1월 23일
thank you very much. You help me a lot.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Animation에 대해 자세히 알아보기

태그

질문:

Ju
2012년 1월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by