大家看看下面的程序,疑惑,解决一下
load speckle;nbcol=size(map,1);
figure(1);
subplot(221);image(X);colormap(map);
title('原试图');
axis square
[ca,ch,cv,cd]=dwt2(X,'db1');
figure(2);
subplot(221);image(ca);colormap(map);
title('低频系数图');
axis square
subplot(222);image(ch);colormap(map);
title('水平高频图');
我按照书面的写就没错,但是我把书上面的mat文件改成我自己的,就不行了,当运行到这一行的时候就出错了[ca,ch,cv,cd]=dwt2(X,'db1');原因:Warning: CONV2 on values of class UINT8 is obsolete.
Use CONV2(DOUBLE(A),DOUBLE(B)) or CONV2(SINGLE(A),SINGLE(B)) instead.
> In uint8.conv2 at 11
In wconv2 at 25
In dwt2 at 80
Warning: CONV2 on values of class UINT8 is obsolete.
Use CONV2(DOUBLE(A),DOUBLE(B)) or CONV2(SINGLE(A),SINGLE(B)) instead.
> In uint8.conv2 at 11
In wconv2 at 25
In dwt2 at 83