转换mp4到jpg格式的图片:
% convert .mp4 to jpg picture t=\'C:\Documents and Settings\luokh\桌面\Matlab编程\Matlab编程\数据资料\finger.mp4\'; obj = VideoReader(t); for i=1:20 frame = read(obj,i); temp=strcat(\'C:\Documents and Settings\luokh\桌面\Matlab编程\Matlab编程\数据资料\fingerOUT\\',num2str(i),\'.\',\'jpg\'); imwrite(frame,temp); end clear all %end