convert images to video

12 visualizaciones (últimos 30 días)
mohammed  musthafa
mohammed musthafa el 19 de Feb. de 2015
Comentada: mohammed musthafa el 19 de Feb. de 2015
can anyone sugest how to convert images to video using matlab

Respuesta aceptada

Michael Haderlein
Michael Haderlein el 19 de Feb. de 2015
In the help to addframe, you find an example of that: http://www.mathworks.com/help/matlab/ref/avifile.addframe.html
aviobj = avifile('example.avi','compression','None');
t = linspace(0,2.5*pi,40);
fact = 10*sin(t);
fig=figure;
[x,y,z] = peaks;
for k=1:length(fact)
h = surf(x,y,fact(k)*z);
axis([-3 3 -3 3 -80 80])
axis off
caxis([-90 90])
F = getframe(fig);
aviobj = addframe(aviobj,F);
end
close(fig);
aviobj = close(aviobj);
Instead of creating a surface plot, you can also display an image (imshow).
  1 comentario
mohammed  musthafa
mohammed musthafa el 19 de Feb. de 2015
thank you Michael Haderlein

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type 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