Borrar filtros
Borrar filtros

Frame of Animated Gif

5 visualizaciones (últimos 30 días)
Ju
Ju el 15 de En. de 2012
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 comentarios
Jan
Jan el 15 de En. de 2012
Please explain again, what you want to get? The number of images an animated GIF consists of?
Ju
Ju el 23 de En. de 2012
i want to get the nnumber of frames and put it in a variable..

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de En. de 2012
Read all of the frames using imread(), and then look at the size of what is returned.
  1 comentario
Jan
Jan el 16 de En. de 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...

Iniciar sesión para comentar.

Más respuestas (1)

Ju
Ju el 23 de En. de 2012
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 comentarios
Walter Roberson
Walter Roberson el 23 de En. de 2012
allframedata = imread('YourFile.GIF', 'frames', 'all');
alldimensions = size(allframedata);
number_of_frames = alldimensions(end);
Ju
Ju el 23 de En. de 2012
thank you very much. You help me a lot.

Iniciar sesión para comentar.

Categorías

Más información sobre Animation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by