[求助]关于jpeg 压缩量化问题
一下是代码的一部分:<BR>A=imread('cameraman.tif');<BR>s=size(A);<BR>I=zeros(s(1),s(2));<BR>for i=1:s(1)%类型转换<BR> for j=1:s(2)<BR> I(i,j)=A(i,j);<BR> end<BR> end<BR>T=dctmtx(8);<BR>B=blkproc(I,,'P1*x*P2',T,T');%DCT<BR>%%%%%%%%%%%%%%%%%%%%%%%量化<BR>Q= ; <BR> BQ=blkproc(B,,'x./P1',Q);<BR><BR>运行结果BQ除了直流分量之外其它值都接近0,也即量化值过小,请大家帮忙想想办法,谢谢了<BR>
页:
[1]