网站大量收购独家精品文档,联系QQ:2885784924

数字图像(实验四).doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数字图像(实验四)

福建农林大学计算机与信息学院 实验报告 课程名称: 数字图像处理(双语) (Digital Image Processing) 姓 名: 系: 计算机科学与技术 专 业: 计算机科学与技术 年 级: 指导教师: 王长缨 职 称: 副教授 2014~2015学年下学期 福建农林大学计算机与信息学院实验报告 系: 计算机科学与技术 专业:计算机科学与技术 年级:2012级 姓名: 学号: 实验室号 田家炳510 计算机号 实验时间:2015年5月 日 指导教师签字: 成绩: Experiment IV Noise reduction with adaptive filtering (validated) (2 periods) Objective Establish the data driven idea from adaptive filter in both spatial and frequency domain. Methodology Apply spatial adaptive filter and Wiener filter to a noised photo respectively and make a comment by comparison of two methods. Environment Hardware: General PC Operating system: Windows XP Calculating platform: MATLAB 6.5 or higher version Experiment in detail: 1.Design an adaptive local noise reduction filter and apply it to an image with Gaussian noise. Compare the performance of the adaptive local noise reduction filter with arithmetic mean and geometric mean filter. 代码: rt=imread(D:\tupian1.jpg); gray=rgb2gray(rt); subplot(2,3,1);imshow(rt); title(Original picture) ; subplot(2,3,2);imshow(gray); title(Gray picture) ; rtg=im2double(gray); rtg=imnoise(rtg,gaussian,0,0.005)%加入均值为0,方差为0.005的高斯噪声 subplot(2,3,3);imshow(rtg); title(Gaussian picture); [a,b]=size(rtg); n=3; smax=7; nrt=zeros(a+(smax-1),b+(smax-1)); for i=((smax-1)/2+1):(a+(smax-1)/2) for j=((smax-1)/2+1):(b+(smax-1)/2) nrt(i,j)=rtg(i-(smax-1)/2,j-(smax-1)/2); end end figure; imshow(nrt); title(扩充后的图像); nrt2=zeros(a,b); for i=n+1:a+n for j=n+1:b+n for m1=3:2 m2=(m1-1)/2; c=nrt2(i-m2:i+m2,j-m2:j+m2);%使用7*7的滤波器 Zmed=median(median(c)); Zmin=min(min(c)); Zmax=max(max(c)); A1=Zmed-Zmin; A2=Zmed-Zmax;

文档评论(0)

gangshou + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档