高手指点一下啊!
<P>function dct8x8(I,m,s)<BR>T=inline('dctmtx(8)');<BR>y=blkproc(I,,T);<BR>y=round(y./m);<BR>p=1;te=1;<BR>while (p<=64)<BR>for q=1:te<BR>y1(s+p)=y(te-q+1,q);p=p+1;<BR>end<BR>for q=te:-1:1<BR>y1(s+p)=y(te-q+1,q);p=p+1;<BR>end<BR>end</P><P>f=haffman(y1);<BR>c(s:s+64,1)=f(:,1);<BR>c(s:s+64,2)=f(:,2);<BR>c(s:s+64,3)=f(:,3)<BR><BR>这个是JPEG压缩和编码的子程序:定义DCT量化子程序<BR>运行后出现这个:<BR>??? Attempt to execute SCRIPT haffman as a function.</P>
<P>Error in ==> d:\MATLAB6p5p1\work\dct8x8.m<BR>On line 18==> f=haffman(y1);<BR>能帮我解释一下是什么意思吗?方便的话能告诉我怎么修改吗?<BR>谢谢!<BR></P>
页:
[1]