数字图像处理实验三Experiment III (2 periods).doc_第1页
数字图像处理实验三Experiment III (2 periods).doc_第2页
数字图像处理实验三Experiment III (2 periods).doc_第3页
数字图像处理实验三Experiment III (2 periods).doc_第4页
数字图像处理实验三Experiment III (2 periods).doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

福建农林大学计算机与信息学院实验报告课程名称:数字图像处理(双语)(Digital Image Processing)姓 名:系:计算机科学与技术专 业:计算机科学与技术年 级:2012级学 号:指导教师:职 称:副教授20142015学年下学期福建农林大学计算机与信息学院实验报告系: 计算机科学与技术 专业:计算机科学与技术 年级:2012级 姓名: 学号: 实验室号 田家炳510 计算机号实验时间:2015年5月 日 指导教师签字: 成绩: Experiment III Implement convolution filter to obtain image smoothing as well as edge enhancement (validated)(2 periods)ObjectiveGet fully understand of the notion of the convolution and its applications on image smoothing and enhancement MethodologyConvolute an image with different dedicated designed function to get image smoothing and image edge enhancement by means of MATLAB.Environment Hardware: General PC Operating system: Windows XP Calculating platform: MATLAB 6.5 or higher version jpg=imread(E:university数字图像处理实验3test.jpg); j=rgb2gray(jpg); imshow(j);加入乘性噪声: x=imnoise(xx,speckle,0.02); imshow(x);Experiment in detail:1Image smoothing with different size of spatial masksA. Image smoothing with arithmetic averaging filter (spatial convolution). h=ones(3,3)/9; hh = 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 x1=imfilter(x,h); subplot(121);imshow(x);title(原图); subplot(122);imshow(x1);title(经过(3*3)邻域平均后图); h1=ones(5,5)/25; h1h1 = 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 x2=imfilter(x,h1); subplot(121);imshow(x);title(原图); subplot(122);imshow(x2);title(经过(5*5)邻域平均后图);B. Make a comparison of noise reduction by both median filter and averaging filter. avgx=filter2(fspecial(average,5),x)/255; midx=medfilt2(x,5,5); subplot(131);imshow(x);title(原图); subplot(132);imshow(avgx);title(经过(5*5)均值滤波图); subplot(133);imshow(midx);title(经过(5*5)中值滤波图);2Edge enhancement by means of spatial filtering.A. Develop a program to implement a Gradient Mask to obtain edge of an object (in compare with the function provided by Matlab) subplot(231);imshow(j);title(原图); eSoble=edge(j,sobel); subplot(232);imshow(eSoble);title(Soble图); ePrewitt=edge(j,prewitt); subplot(233);imshow(ePrewitt);title(Prewitt图); eRobert=edge(j,roberts); subplot(234);imshow(eRobert);title(Robert图); eLog=edge(j,log); subplot(235);imshow(eLog);title(Log图); eCanny=edge(j,canny); subplot(236);imshow(eCanny);title(Canny图);B. Image enhancement with High-Boost Filtering Mask and compare with the result of the operation defined by equation subplot(131);imshow(j);title(原图); H=-1 -1 -1;-1 -9 -1;-1 -1 -1; xhigh=filter2(H,j); subplot(132);imshow(xhigh,);title(高通滤波); jdouble=double(j); M=1 1 1;1 1 1;1 1 1/9; xmask=double(xhigh); xmask2=filter2(M,xmask); xm=xmask-xmask2; subplot(133);imshow(xresult);title(掩膜处理);Experimental resultData in whatever chart, image and other form is required with explanati

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论