convert images to video

조회 수: 8 (최근 30일)
mohammed  musthafa
mohammed musthafa 2015년 2월 19일
댓글: mohammed musthafa 2015년 2월 19일
can anyone sugest how to convert images to video using matlab

채택된 답변

Michael Haderlein
Michael Haderlein 2015년 2월 19일
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
mohammed  musthafa
mohammed musthafa 2015년 2월 19일
thank you Michael Haderlein

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by