How to loop images using for loop and making it run on mp4
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to loop 4 images onto a mp4 player as a result im stuck on the looping using for loop may anyone help me.
My Code:
x = VideoWriter('myAnimation','MPEG-4');
x.FrameRate = 0.5;
x.VideoCompressionMethod
open(x);
for B = 1:5;
Bimread('mob.jpg'); %inputting images here!
C = imresize(B, .25);
end
writeVideo(x,C);
close(x);
*Im not sure where the
0 comentarios
Respuestas (2)
Image Analyst
el 9 de Nov. de 2016
After you've created the video, use movie() to play it.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!