Creating a movie out of images
1 view (last 30 days)
Show older comments
Hello, I have to create a movie (from images which are the part of Matlab already), and this code doesn't work. Any help please?
if true
close all; clear all; clc;
ImageList = {'AT3_1m4_01.tif', 'AT3_1m4_02.tif', 'AT3_1m4_03.tif', 'AT3_1m4_04.tif', 'AT3_1m4_05.tif', 'AT3_1m4_06.tif', 'AT3_1m4_07.tif', 'AT3_1m4_08.tif', 'AT3_1m4_09.tif','AT3_1m4_10.tif' };
AVI = avifile('film.avi', 'FPS', 1, 'Compression', 'none');
for iImage = 1:10
aImage = imread(ImageList{iImage});
AVI = addframe(AVI, aImage);
end
AVI=close(AVI);
end
0 Comments
Answers (1)
Image Analyst
on 17 Jun 2014
See my attached code, which does work. Look especially at the last half of the demo where it rebuilds the movie from the individual image files.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!