video = VideoWriter('V3.avi'); %create the video object
open(video); %open the file for writing
for i=1:193 %where N is the number of images
name = ['V3_' num2str(i) '.png'];
I = imread(name); %read the next image
writeVideo(video,I); %write the image to file
end
close(video); %close the file
write pictures into a video in matlab
最新推荐文章于 2024-02-15 21:08:42 发布