查看单个帖子
旧 2009-02-01, 20:07   #1
barryyan2007
初级会员
 
注册日期: 2009-02-01
年龄: 39
帖子: 5
声望力: 0
barryyan2007 正向着好的方向发展
问题 [求助]运用MATLAB进行小波的图像处理时遇到问题,还望高手指教

在用小波对图像进行消噪处理时遇到问题,原图像可以显示,但是噪声却加不上去。程序如下
load whale
subplot(2,2,1);
image(X);
colormap(map);
title('a');
init=2055615866;
rand('seed',init);
XX=X+12*randn(size(X));
subplot(2,2,2);
image(XX);
colormap(map);
title('b');

但是出现错误,说
??? Error using ==> plus
Integers can only be combined with integers of the same class, or scalar doubles.

Error in ==> xiaozao3 at 8
XX=X+12*randn(size(X));
貌似说整数的类型不一样,还望指教。
barryyan2007 当前离线   回复时引用此帖