[求助]关于视频水印一些问题
<P>我的想法是把视频图象一帧帧取出来,在上面嵌入水印<br>mv=aviread('c:\demo.avi');<br>fnum=size(mv,2); <br>for i=1:fnum<br>strtemp=strcat('c:\转换的图片\',int2str(i),'.','jpg');%将每祯转成jpg的图片<br>imwrite(mv(i).cdata,mv(i).colormap,strtemp);<br>end <br>做毕业设计刚接触matlab,不懂啊,望各位看看,哪错了,谢谢<br>错误信息:<br>??? Error using ==> imwrite<br>Invalid colormap</P><P>Error in ==> C:\MATLAB6p5\work\untitled.m (pushbutton2_Callback)<br>On line 99==> imwrite(mv(i).cdata,mv(i).colormap,strtemp);</P>
<P>Error in ==> C:\MATLAB6p5\toolbox\matlab\uitools\gui_mainfcn.m<br>On line 66==> feval(varargin{:});</P>
<P>Error in ==> C:\MATLAB6p5\work\untitled.m<br>On line 42==> gui_mainfcn(gui_State, varargin{:});</P>
<P>??? Error while evaluating uicontrol Callback.<br></P>
<DIV align=right></DIV><br><br>
[此贴子已经被作者于2006-5-22 15:09:16编辑过]
回复:(zytianyi)[求助]关于视频水印一些问题
给出错误信息
页:
[1]