[求助]运用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));
貌似说整数的类型不一样,还望指教。
|