当前位置:编程学习 > Matlab >>

matlab,小波图像去噪程序错误,急!!!求解决

那个归一化一直出现问题,愁死我了!求高手解决下 I=imread('barbara_truth.bmp');%读取图像数据 n=length(I); figure; imshow(I,256);%显示原图像 %产生噪声图像 theta_noise=15;%噪声方差(可设为其他值)------------------------------------------- %noise_sig_truth = 20; % sigma_n used in the paper. This parameter is adjusted by the user. noise_mu = 0; noise=randn(size(I)) .* theta_noise + noise_mu; Inoise=double(I) + noise; figure; imshow(Inoise,[]);%显示带噪图像 %小波滤波器选择 这个是调用滤波器函数,但是仿真出错 qmf=MakeONFilter('Daubechies',8);%Daubechies8小波(可设为其他小波)----------------- L=5;%分解层数=log2(n)-L [InoiseNorm,coef] = NormNoise2(Inoise,qmf);%归一化,这个一直出现问题是怎么回事? wc=FWT2_PO(InoiseNorm,L,qmf);%这个也没有 %--------------------------VisuShrink方法----------------------------------------- %wc = MultiVisu2(wc,L); %--------------------------------------------------------------------------------- %--------------------------SUREShrink方法----------------------------------------- wc = MultiSURE2(wc,L);
补充:貌似这个NormNoise2是要自己编写的小程序,因为刚开始接触懂的不多,还望大侠们可以帮忙解决下,感激不尽啊!!!
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,