|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
<P><STRONG>m文件如下:</STRONG><BR><BR>[X,map]=imread('abc.tif');<BR>subplot(121);image(X),colormap(map);<BR>[c,s]=wavedec2(X,2,'sym5');<BR>[thr,sorh,keepapp]=ddencmp('den','wv','X');<BR>[X1,cxc,lxc,perf0,perfl2]=wdencmp('gbl',c,s,'sym5',2,thr,sorh,keepapp);<BR>subplot(122);image(X1),colormap(map);<BR><BR><STRONG>文件名为aaa,图片是我随便抓的,已经存到work文件夹里面了,运行之后报错:</STRONG><BR><BR>Warning: CONV2 on values of class UINT8 is obsolete.<BR> Use CONV2(DOUBLE(A),DOUBLE(B)) or CONV2(SINGLE(A),SINGLE(B)) instead.<BR>> In uint8.conv2 at 11<BR> In wconv2 at 25<BR> In dwt2 at 80<BR> In wavedec2 at 52<BR> In aaa at 3<BR>Warning: CONV2 on values of class UINT8 is obsolete.<BR> Use CONV2(DOUBLE(A),DOUBLE(B)) or CONV2(SINGLE(A),SINGLE(B)) instead.<BR>> In uint8.conv2 at 11<BR> In wconv2 at 25<BR> In dwt2 at 83<BR> In wavedec2 at 52<BR> In aaa at 3<BR>??? Error using ==> vertcat<BR>All rows in the bracketed expression must have the same <BR>number of columns.</P>
<P>Error in ==> wavedec2 at 54<BR> s = [size(x);s]; % store size</P>
<P>Error in ==> aaa at 3<BR>[c,s]=wavedec2(X,2,'sym5');<BR><BR><STRONG>可以image出原始图像,但是处理之后的图像就显示不出来了。各位大哥大姐,这到底是啥问题啊??参考书上都用的是MATLAB自己的图片,都能运行通过,换了我自己的图片就不行了。大家帮帮忙吧,这可是我的大作业啊。</STRONG></P> |
|