Matlab制作Video

Matlab可以将图像序列合成为一段视频,其过程非常之简单:

outputVideo = VideoWriter('MergeVideo.avi');
outputVideo.FrameRate = 24;
open(outputVideo)
for i=1:length(files)
    im = imread(files(i).name));
    writeVideo(outputVideo,mat2gray(im))
end
close(ouputVideo)

你可能感兴趣的:(Matlab制作Video)