[求助]请各位大虾帮小弟看看这是什么问题~~
<P><STRONG>m文件如下:</STRONG><BR><BR>=imread('abc.tif');<BR>subplot(121);image(X),colormap(map);<BR>=wavedec2(X,2,'sym5');<BR>=ddencmp('den','wv','X');<BR>=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 = ; % store size</P>
<P>Error in ==> aaa at 3<BR>=wavedec2(X,2,'sym5');<BR><BR><STRONG>可以image出原始图像,但是处理之后的图像就显示不出来了。各位大哥大姐,这到底是啥问题啊??参考书上都用的是MATLAB自己的图片,都能运行通过,换了我自己的图片就不行了。大家帮帮忙吧,这可是我的大作业啊。</STRONG></P>
回复:(guandaoju)[求助]请各位大虾帮小弟看看这是什...
Matlab不支持用LZW方式压缩的Tif图像格式,把图片的tif压缩方式去掉就行了。回复:(guandaoju)[求助]请各位大虾帮小弟看看这是什...
看过类似的问题,不过不知道怎么处理,不好意思 <P>可是我用.bmp和.jpg的格式也不行啊~~~一样的图片</P>
页:
[1]