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.
Creating a movie out of images
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!