Recently in a post Convert images to avi video in MATLAB there is someone anonymous asking how to convert a video to images. If they have read the MATLAB help file carefully, this would not be problem.
An example is given below.
mov =aviread('vipscenevideoclip.avi');
for m =1:length(mov)
[im,map] = frame2im(mov(m));
imwrite(im, ['im' num2str(m) '.jpg'],'jpg');
end
No comments:
Post a Comment