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
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