马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
我用下面的程序来抓取视频的图像,但是一运行就死机,请大家看一下,提点意见:
function avi2pic()
mov=aviread('F:\bao.avi');
temp=size(mov);
fnum=temp(2);
for i=1:fnum,
strtemp=strcat(int2str(i),'.','jpg');
imwrite(mov(i).cdata(:,:,:),mov(i).colormap,strtemp);
end
下面是运行后的报警:
mov=aviread('F:\bao.avi');
Warning: File: E:\MATLAB6p5\toolbox\matlab\iofun\aviinfo.m Line: 311 Column: 1
Variable 'length' has been previously used as a function name.
(Type "warning off MATLAB:mir_warning_variable_used_as_function" to suppress this warning.)
> In E:\MATLAB6p5\toolbox\matlab\iofun\aviread.m at line 46 |