Pages

Wednesday, 2 April 2014

How to get video to frmae or image ?


mov = VideoReader('xylophone.mpg');   %# use mmreader on older versions
for i=1:mov.NumberOfFrames
    img = read(mov,i);
    imshow(img)
saveas(gcf,['Frame',num2str(i),'.jpg'])
    drawnow
end