数字图像处理中利用matlab完成图像复原、

  • 虫虫123456
    了解作者
  • matlab
    开发工具
  • 456KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 5 积分
    下载积分
  • 0
    下载次数
  • 2022-06-24 23:43
    上传日期
数字图像处理中利用matlab完成图像复原、
(6).DIP_图像复原.rar
  • (6).DIP_图像复原
  • Matlab源文件
  • Untitled.m
    4.3KB
  • 处理结果图像
  • 平均滤波后的图像.jpg
    7.3KB
  • 滤除均匀噪声后的图像.jpg
    7.2KB
  • 滤除高斯噪声后的图像.jpg
    6.9KB
  • 加了均匀噪声的图像.jpg
    10.8KB
  • 加了高斯噪声的图像.jpg
    19KB
  • 原始图像
  • 5-Einstein.tif
    64.2KB
  • 程序说明文档.doc
    210.5KB
  • 本次作业报告.doc
    216KB
内容介绍
<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/62b5dd15f3cc394cf1c1aa6c/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/62b5dd15f3cc394cf1c1aa6c/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0"> <span class="fs1"> <span class="ff2 fs2">&#20316;&#19994;&#25253;&#21578;</span></span></div><div class="t m0 x1 h3 y3 ff2 fs2 fc0 sc0 ls0 ws0">&#19968;&#65294;<span class="_ _0"> </span><span class="fs1">&#31243;&#24207;&#30340;&#30446;&#30340;</span></div><div class="t m0 x2 h4 y4 ff2 fs1 fc0 sc0 ls0 ws0">&#23558;<span class="_ _1"></span>&#19968;<span class="_ _1"></span>&#24133;<span class="_ _2"> </span><span class="ff1">256&#215;256<span class="_ _2"> </span></span>&#30340;<span class="_ _1"></span>&#28784;<span class="_ _1"></span>&#24230;<span class="_ _1"></span>&#22270;<span class="_ _1"></span>&#20687;<span class="_ _1"></span>&#29992;<span class="_ _2"> </span><span class="ff1">3&#215;3<span class="_ _2"> </span></span>&#24179;<span class="_ _1"></span>&#22343;<span class="_ _1"></span>&#28388;<span class="_ _1"></span>&#27874;<span class="_ _1"></span>&#22120;<span class="_ _1"></span>&#36827;<span class="_ _1"></span>&#34892;<span class="_ _1"></span>&#27169;<span class="_ _1"></span>&#31946;<span class="_ _1"></span>&#65292;<span class="_ _1"></span>&#20998;<span class="_ _1"></span>&#21035;<span class="_ _1"></span>&#20877;<span class="_ _1"></span>&#21152;<span class="_ _1"></span>&#19978;<span class="_ _1"></span>&#19968;<span class="_ _1"></span>&#23450;</div><div class="t m0 x1 h4 y5 ff2 fs1 fc0 sc0 ls0 ws0">&#30340;&#39640;<span class="_ _1"></span>&#26031;<span class="_ _1"></span>&#22122;&#22768;<span class="_ _1"></span>&#21644;<span class="_ _1"></span>&#22343;&#21248;<span class="_ _1"></span>&#22122;<span class="_ _1"></span>&#22768;&#12290;<span class="_ _1"></span>&#28982;<span class="_ _1"></span>&#21518;&#65292;<span class="_ _1"></span>&#35774;<span class="_ _1"></span>&#35745;&#19968;<span class="_ _1"></span>&#20010;<span class="_ _1"></span>&#32500;&#32435;<span class="_ _1"></span>&#28388;<span class="_ _1"></span>&#27874;&#22120;<span class="_ _1"></span>&#23545;<span class="_ _1"></span>&#36825;&#20004;<span class="_ _1"></span>&#24133;<span class="_ _1"></span>&#22270;&#20687;<span class="_ _1"></span>&#36827;<span class="_ _1"></span>&#34892;&#22797;<span class="_ _1"></span>&#21407;<span class="_ _1"></span>&#65292;</div><div class="t m0 x1 h4 y6 ff2 fs1 fc0 sc0 ls0 ws0">&#20998;&#21035;&#35745;&#31639;&#36825;&#20004;&#24133;&#22270;&#20687;&#22797;&#21407;&#21069;&#21518;&#30340;<span class="_ _3"> </span><span class="ff1">PSNR</span>&#12290;</div><div class="t m0 x1 h3 y7 ff2 fs2 fc0 sc0 ls0 ws0">&#20108;&#65294;<span class="_ _0"> </span><span class="fs1">&#36816;&#34892;&#29615;&#22659;</span></div><div class="t m0 x2 h4 y8 ff1 fs1 fc0 sc0 ls0 ws0">Matlab<span class="_ _3"> </span><span class="ff2">&#24179;&#21488;&#65292;&#32534;&#20889;</span>.m<span class="_ _3"> </span><span class="ff2">&#31243;&#24207;&#23454;&#29616;</span></div><div class="t m0 x1 h3 y9 ff2 fs2 fc0 sc0 ls0 ws0">&#19977;&#65294;<span class="_ _0"> </span><span class="fs1">&#31243;&#24207;&#20195;&#30721;</span></div><div class="t m0 x1 h5 ya ff1 fs1 fc0 sc0 ls0 ws0">clear;</div><div class="t m0 x1 h4 yb ff1 fs1 fc0 sc0 ls0 ws0">%<span class="ff2">&#35835;&#21462;&#22270;&#20687;</span></div><div class="t m0 x1 h4 yc ff1 fs1 fc0 sc0 ls0 ws0">add_name = input('<span class="ff2">&#35831;&#36755;&#20837;&#19968;&#24133;&#28784;&#24230;&#22270;&#20687;&#30340;&#36335;&#24452;&#21644;&#21517;&#23383;</span>&gt; ','s');</div><div class="t m0 x1 h5 yd ff1 fs1 fc0 sc0 ls0 ws0">image1 = imread(add_name);</div><div class="t m0 x1 h5 ye ff1 fs1 fc0 sc0 ls0 ws0">[row<span class="_ _4"></span>,col] = size(image1); </div><div class="t m0 x1 h4 yf ff1 fs1 fc0 sc0 ls0 ws0">%<span class="ff2">&#37319;&#29992;<span class="_ _3"> </span></span>3&#215;3<span class="_ _3"> </span><span class="ff2">&#30340;&#24179;&#22343;&#31383;&#21475;&#23545;&#23427;&#22270;&#20687;&#20316;&#28388;&#27874;</span></div><div class="t m0 x1 h4 y10 ff1 fs1 fc0 sc0 ls0 ws0">filt = fspecial('average',[3 3]);%<span class="ff2">&#29983;&#25104;<span class="_ _3"> </span></span>3*3<span class="_ _3"> </span><span class="ff2">&#30340;&#24179;&#22343;&#28388;&#27874;&#22120;</span></div><div class="t m0 x1 h4 y11 ff1 fs1 fc0 sc0 ls0 ws0">image2 = imfilter(image1,filt,128);%<span class="_ _1"></span><span class="ff2">&#28388;&#27874;</span></div><div class="t m0 x1 h4 y12 ff1 fs1 fc0 sc0 ls0 ws0">imwrite(image2,'<span class="ff2">&#24179;&#22343;&#28388;&#27874;&#21518;&#30340;&#22270;&#20687;</span>.jpg');</div><div class="t m0 x1 h4 y13 ff1 fs1 fc0 sc0 ls0 ws0">%<span class="ff2">&#28155;&#21152;&#39640;&#26031;&#22122;&#22768;</span></div><div class="t m0 x1 h4 y14 ff1 fs1 fc0 sc0 ls0 ws0">gaus_average = input('<span class="ff2">&#35831;&#36755;&#20837;&#25152;&#28155;&#21152;&#39640;&#26031;&#22122;&#22768;&#30340;&#22343;&#20540;&#65292;&#27809;&#26377;&#36755;&#20837;&#40664;&#35748;&#20026;<span class="_ _3"> </span></span>0&gt; ');</div><div class="t m0 x1 h5 y15 ff1 fs1 fc0 sc0 ls0 ws0">if isempty(gaus_average) </div><div class="t m0 x1 h5 y16 ff1 fs1 fc0 sc0 ls0 ws0"> gaus_average = 0;</div><div class="t m0 x1 h5 y17 ff1 fs1 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h4 y18 ff1 fs1 fc0 sc0 ls0 ws0">gaus_var = input('<span class="ff2">&#35831;&#36755;&#20837;&#25152;&#28155;&#21152;&#39640;&#26031;&#22122;&#22768;&#30340;&#26041;&#24046;&#65292;&#27809;&#26377;&#36755;&#20837;&#40664;&#35748;&#20026;<span class="_ _3"> </span></span>0.01&gt; ');</div><div class="t m0 x1 h5 y19 ff1 fs1 fc0 sc0 ls0 ws0">if isempty(gaus_var) </div><div class="t m0 x1 h5 y1a ff1 fs1 fc0 sc0 ls0 ws0"> gaus_var = 0.01;</div><div class="t m0 x1 h5 y1b ff1 fs1 fc0 sc0 ls0 ws0">end</div><div class="t m0 x1 h5 y1c ff1 fs1 fc0 sc0 ls0 ws0">gaus = gaus_average*ones(row<span class="_ _4"></span>,col)+randn(row<span class="_ _4"></span>,col)*sqrt(gaus_var);</div><div class="t m0 x1 h4 y1d ff1 fs1 fc0 sc0 ls0 ws0">image3<span class="_ _1"></span> <span class="_ _1"></span>=<span class="_ _1"></span> <span class="_ _1"></span>im2uint8(mat2gray(mat2gray(<span class="_ _1"></span>image2)+gaus));<span class="_ _1"></span> <span class="_ _1"></span>%<span class="_ _5"></span><span class="ff2">&#24448;<span class="_ _6"></span>&#21407;<span class="_ _6"></span>&#22270;<span class="_ _6"></span>&#20687;<span class="_ _6"></span>&#20013;<span class="_ _6"></span>&#28155;<span class="_ _5"></span>&#21152;<span class="_ _1"></span>&#39640;<span class="_ _5"></span>&#26031;<span class="_ _1"></span>&#22122;</span></div><div class="t m0 x1 h4 y1e ff2 fs1 fc0 sc0 ls0 ws0">&#22768;&#65292;&#22343;&#20540;&#20026;<span class="_ _3"> </span><span class="ff1">0</span>&#65292;&#26041;&#24046;&#20026;<span class="_ _3"> </span><span class="ff1">0.01</span></div><div class="t m0 x1 h4 y1f ff1 fs1 fc0 sc0 ls0 ws0">imwrite(image3,'<span class="ff2">&#21152;&#20102;&#39640;&#26031;&#22122;&#22768;&#30340;&#22270;&#20687;</span>.jpg');</div><div class="t m0 x1 h4 y20 ff1 fs1 fc0 sc0 ls0 ws0">%<span class="ff2">&#35745;&#31639;&#21152;&#20102;&#39640;&#26031;&#22122;&#22768;&#22270;&#20687;&#30340;<span class="_ _3"> </span></span>PSNR</div><div class="t m0 x1 h4 y21 ff1 fs1 fc0 sc0 ls0 ws0">msevalue1 = 0; %<span class="ff2">&#21021;&#22987;&#21270;<span class="_ _3"> </span></span>MSE</div><div class="t m0 x1 h5 y22 ff1 fs1 fc0 sc0 ls0 ws0">for m = 1:row</div><div class="t m0 x1 h5 y23 ff1 fs1 fc0 sc0 ls0 ws0"> for n = 1:col</div><div class="t m0 x1 h5 y24 ff1 fs1 fc0 sc0 ls0 ws0"> msevalue1 = msevalue1+(double(image3(m,n))-double(image1(m,n)))^2;</div><div class="t m0 x1 h5 y25 ff1 fs1 fc0 sc0 ls0 ws0"> end</div><div class="t m0 x1 h5 y26 ff1 fs1 fc0 sc0 ls0 ws0">end</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>
评论
    相关推荐
    • 数字图像处理
      数字图像处理中文课件,包括成像,图像采集,数学特征,正交变换,图像增强,复原,压缩等内容。
    • 数字图像处理
      HSI RGB LZW 哈弗慢编码,直方图均衡化,累计直方图,灰度映射,腐蚀,膨胀(文件内容:图像处理练习.doc 数字图像处理代码.doc)
    • 数字图像处理
      本书是数字图像处理理论与实践相结合的成功之作,强调理论用于解决工业或科学研究中常见的实际问题。这种与基本概念和数字图像处理的各种实用技术,使读者能用这些技术解决数字图像中的新问题。 全书共22章,1-5章...
    • 数字图像处理
      本书全面系统地讲述了数字图像处理领域中的15大核心话题,包括色彩空间、图像编码、频域变换、图像文件格式、几何变换、灰度变换、图像的增强处理、边缘检测、轮廓跟踪、形态学处理、图像分割、图像的加密与隐藏、...
    • 数字图像处理
      数字图像处理宝典,PDF高清版,因每次上传限制,分为7个部分上传,搜索时搜 “数字图像处理(中午版part#)
    • 图像处理论文
      这是一篇本人发表的文章,里面详细写了对于处理多峰值图像处理的新思想,这种思想可以解决小图像,多峰阈值分割问题。
    • 图像处理
      图像处理
    • 图像处理
      图像处理
    • 图像处理
      图像处理
    • 图像处理代码
      这个是图像处理不可多得的源码,是我们做项目时用到的所有技术。涉及到哈夫曼码编码、香农-弗诺编码、伪彩色、滤波、模板匹配 、图像平滑、图像复原、图像显示、特征提取、图像变、运动检测、小波变换、图像分割等...