|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
望高手改正,谢谢了!!
i=imread('kids.tif');
g=imnoise(i,'gaussian');
% Perform a wavelet decomposition of the signal
% at level 5 using sym6.
wname = 'sym6' ; lev = 5 ;
[ c ,l ] = wavedec ( g , lev , wname) ;
% Estimate the noise standard deviation from the
% detail coefficients at level 1 , using wnoisest .
sigma = wnoisest ( c ,l ,1) ;
% Use wbmpen for selecting global threshold
% for signal de - noising , using the tuning parameter
alpha = 2 ;
thr = wbmpen (c ,l , sigma , alpha)
% Use wdencmp for de - noising the signal using the above
% threshold with soft thresholding and approximation kept .
keepapp = 1 ;
xd = wdencmp ('gbl' , c , l , wname , lev , thr , 's' ,keepapp) ;
% Plot original and de - noised signals.
figure(1);imshow(i);
figure(2);imshow(g);
figure(3);imshow(xd);
错误提示:??? Error using ==> minus
Matrix dimensions must agree.
Error in ==> wbmpen at 57
[dummy,indmin] = min(pen-rl2scr);
Error in ==> Untitled3 at 13
thr = wbmpen (c ,l , sigma , alpha)
他说矩阵必须一致,但是怎么改啊?? |
|