• 之昂张
    了解作者
  • matlab
    开发工具
  • 9KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 10 积分
    下载积分
  • 5
    下载次数
  • 2020-05-06 16:59
    上传日期
一个小波去噪程序,能够实现图像噪声的去除
小波去噪程序.rar
  • 小波去噪程序.docx
    11.5KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/625d005992dc900e6269f311/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/625d005992dc900e6269f311/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">clear;</div><div class="t m0 x1 h3 y3 ff1 fs0 fc0 sc0 ls0 ws0">[A,map]=imread('F:/boy<span class="_ _0"></span>.jpg');</div><div class="t m0 x1 h4 y4 ff1 fs0 fc0 sc0 ls0 ws0">X=rgb2gr<span class="_ _1"></span>ay(<span class="_ _1"></span>A); %<span class="ff2">&#30011;&#20986;&#21407;&#22987;&#22270;&#20687; </span></div><div class="t m0 x1 h4 y5 ff1 fs0 fc0 sc0 ls0 ws0">subplot(2,2,1);imshow(X);&amp;tle('<span class="ff2">&#21407;&#22987;&#22270;&#20687;</span>'); %<span class="ff2">&#20135;&#29983;&#21547;&#22122;&#22270;&#20687; </span></div><div class="t m0 x1 h4 y6 ff1 fs0 fc0 sc0 ls0 ws0">x=imnoise(X ,'gaussian',0,0.003);%<span class="ff2">&#30011;&#20986;&#21547;&#22122;&#22270;&#20687; </span></div><div class="t m0 x1 h4 y7 ff1 fs0 fc0 sc0 ls0 ws0">subplot(2,2,2);imshow(x); &amp;tle('<span class="ff2">&#21547;&#22122;&#22768;&#22270;&#20687;</span>'); </div><div class="t m0 x1 h4 y8 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#19979;&#38754;&#36827;&#34892;&#22270;&#20687;&#30340;&#21435;&#22122;&#22788;&#29702; </span></div><div class="t m0 x1 h4 y9 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#29992;&#23567;&#27874;&#20989;&#25968;<span class="_ _2"> </span></span>sym4<span class="_ _2"> </span><span class="ff2">&#23545;<span class="_ _2"> </span></span>x<span class="_ _2"> </span><span class="ff2">&#36827;&#34892;<span class="_ _2"> </span></span>2<span class="_ _2"> </span><span class="ff2">&#23618;&#23567;&#27874;&#20998;&#35299; </span></div><div class="t m0 x1 h3 ya ff1 fs0 fc0 sc0 ls0 ws0">[c,s]=wav<span class="_ _1"></span>edec2(x,2,'sym4'); </div><div class="t m0 x1 h4 yb ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#25552;&#21462;&#23567;&#27874;&#20998;&#35299;&#20013;&#31532;&#19968;&#23618;&#30340;&#20302;&#39057;&#22270;&#20687;&#65292;&#21363;&#23454;&#29616;&#20102;&#20302;&#36890;&#28388;&#27874;&#21435;&#22122; </span></div><div class="t m0 x1 h4 yc ff1 fs0 fc0 sc0 ls0 ws0">a1=wrcoe<span class="_ _1"></span>f2('a',c,s,'sym4'); % a1<span class="_ _2"> </span><span class="ff2">&#20026; </span>double <span class="ff2">&#22411;&#25968;&#25454;&#65307;</span>%<span class="ff2">&#30011;&#20986;&#21435;&#22122;&#21518;&#30340;&#22270;&#20687; </span></div><div class="t m0 x1 h4 yd ff1 fs0 fc0 sc0 ls0 ws0">subplot(2,2,3); <span class="_ _3"></span>imshow(uint8(a1)); % <span class="_ _3"></span><span class="ff2">&#27880;<span class="_ _3"></span>&#24847; <span class="_ _3"></span></span>imshow()<span class="_ _3"></span><span class="ff2">&#21644;<span class="_ _2"> </span></span>image()<span class="_ _3"></span><span class="ff2">&#26174;&#31034;<span class="_ _3"></span>&#22270;&#20687;<span class="_ _3"></span>&#26377;<span class="_ _3"></span>&#21306;&#21035;<span class="_ _3"></span>&#65292;</span>imshow()<span class="_ _3"></span><span class="ff2">&#19981;<span class="_ _3"></span>&#33021;</span></div><div class="t m0 x1 h4 ye ff2 fs0 fc0 sc0 ls0 ws0">&#26174;&#31034; <span class="ff1">double </span>&#22411;&#25968;&#25454;&#65292;&#24517;&#39035;&#36827;&#34892;&#36716;&#25442; <span class="ff1">uint8(a1)</span>&#65307;</div><div class="t m0 x1 h4 yf ff1 fs0 fc0 sc0 ls0 ws0">&amp;tle('<span class="ff2">&#31532;&#19968;&#27425;&#21435;&#22122;&#22270;&#20687;</span>'); </div><div class="t m0 x1 h4 y10 ff1 fs0 fc0 sc0 ls0 ws0">% <span class="ff2">&#24182;&#19988;<span class="_ _2"> </span></span>image() <span class="ff2">&#26174;&#31034;&#22270;&#20687;&#26377;&#22352;&#26631;&#65307;</span></div><div class="t m0 x1 h4 y11 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#25552;&#21462;&#23567;&#27874;&#20998;&#35299;&#20013;&#31532;&#20108;&#23618;&#30340;&#20302;&#39057;&#22270;&#20687;&#65292;&#21363;&#23454;&#29616;&#20102;&#20302;&#36890;&#28388;&#27874;&#21435;&#22122; </span></div><div class="t m0 x1 h4 y12 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#30456;&#24403;&#20110;&#25226;&#31532;&#19968;&#23618;&#30340;&#20302;&#39057;&#22270;&#20687;&#32463;&#36807;&#20877;&#19968;&#27425;&#30340;&#20302;&#39057;&#28388;&#27874;&#22788;&#29702; </span></div><div class="t m0 x1 h4 y13 ff1 fs0 fc0 sc0 ls0 ws0">a2=wrcoe<span class="_ _1"></span>f2('a',c,s,'sym4',2); %<span class="ff2">&#30011;&#20986;&#21435;&#22122;&#21518;&#30340;&#22270;&#20687; </span></div><div class="t m0 x1 h3 y14 ff1 fs0 fc0 sc0 ls0 ws0">subplot(2,2,4); imshow(uint8(a2)); </div><div class="t m0 x1 h3 y15 ff1 fs0 fc0 sc0 ls0 ws0">%image(a2);</div><div class="t m0 x1 h4 y16 ff1 fs0 fc0 sc0 ls0 ws0">&amp;tle('<span class="ff2">&#31532;&#20108;&#27425;&#21435;&#22122;&#22270;&#20687;</span>');</div><div class="t m0 x1 h4 y17 ff1 fs0 fc0 sc0 ls0 ws0">%<span class="ff2">&#20445;&#23384;&#22270;&#20687; </span></div><div class="t m0 x1 h3 y18 ff1 fs0 fc0 sc0 ls0 ws0">% imwrite(x,'2.jpg');</div><div class="t m0 x1 h3 y19 ff1 fs0 fc0 sc0 ls0 ws0">% imwrite(uin<span class="_ _1"></span>t8(a1),'3.jpg'); </div><div class="t m0 x1 h4 y1a ff1 fs0 fc0 sc0 ls0 ws0">%imwrite()<span class="ff2">&#20445;&#23384;&#22270;&#20687;&#65292;&#20063;&#38656;&#35201;&#23558;&#25968;&#25454;&#31867;&#22411;&#36716;&#21270;&#20026;<span class="_ _2"> </span></span>uin<span class="_ _1"></span>t8</div><div class="t m0 x1 h3 y1b ff1 fs0 fc0 sc0 ls0 ws0">% imwrite(uin<span class="_ _1"></span>t8(a2),'4.jpg')</div></div></div><div class="pi" data-data='{"ctm":[1.611850,0.000000,0.000000,1.611850,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • 小波去噪.zip
      小波去噪,不同小波基,多层小波分解,软硬阈值去噪。
    • 小波去噪.rar
      光谱数据预处理之小波去噪,包含两个数据文件
    • MyWaveletDenoise小波去噪.zip
      小波变换去噪方法,过滤高频低频,C++代码
    • 小波去噪.zip
      利用MATLAB产生正弦信号,加入高斯白噪声后利用小波变换技术去噪声
    • 小波去噪.rar
      小波去噪的ViruShrink和BayesShrink算法实现,含源代码及LaTeX报告
    • 小波去噪.rar
      小波去噪的ViruShrink和BayesShrink算法实现,含源代码及LaTeX报告
    • 小波去噪 MATLAB
      利用小波分解对含噪声图像进行阈值去噪,重构得到新图像。将图像分解后的高频部分的振幅进行软阈值去噪 ,并将试验结果与实数小波去噪结果相比较。结果表明该方法既能有效地去除噪声 ,又能保持图像的大量原始信息
    • 信号处理 小波去噪
      matlab实现小波去噪,对信号处理,提高信号信噪比有效果。
    • wden函数简易小波去噪.rar
      基于labview的一维小波去噪 该VI是基于matlab的在labview编程的的一维小波去噪
    • 小波去噪程序
      对给定图像添加噪声,利用经典小波方法进行去噪,包括Donoho小波,自适应滤波以及中值滤波滤波等多种滤波进行去噪处理,并对比和算法的PSNR。