福建农林大学数字图像实验三

福建农林大学数字图像实验三

ID:33779173

大小:738.50 KB

页数:6页

时间:2019-03-01

福建农林大学数字图像实验三_第1页
福建农林大学数字图像实验三_第2页
福建农林大学数字图像实验三_第3页
福建农林大学数字图像实验三_第4页
福建农林大学数字图像实验三_第5页
资源描述:

《福建农林大学数字图像实验三》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、福建农林大学计算机与信息学院实验报告课程名称:数字图像处理(双语)(DigitalImageProcessing)姓名:王智勇系:计算机科学与技术专业:计算机科学与技术年级:2012级学号:3126010032指导教师:王长缨职称:副教授2014~2015学年下学期福建农林大学计算机与信息学院实验报告系:计算机科学与技术专业:计算机科学与技术年级:2012级姓名:王智勇学号:3126010032实验室号田家炳510计算机号33实验时间:2015年5月20日指导教师签字:成绩:ExperimentIIIImplementconvoluti

2、onfiltertoobtainimagesmoothingaswellasedgeenhancement(validated)(2periods)ObjectiveGetfullyunderstandofthenotionoftheconvolutionanditsapplicationsonimagesmoothingandenhancementMethodologyConvoluteanimagewithdifferentdedicateddesignedfunctiontogetimagesmoothingandimageedg

3、eenhancementbymeansofMATLAB.EnvironmentHardware:GeneralPCOperatingsystem:WindowsXPCalculatingplatform:MATLAB6.5orhigherversionExperimentindetail:1.ImagesmoothingwithdifferentsizeofspatialmasksA.Imagesmoothingwitharithmeticaveragingfilter(spatialconvolution).function[r]=a

4、vgfilter(gray,n)a(1:n,1:n)=1;[row,col]=size(gray);gray1=double(gray);gray2=gray1;fori=1:row-n+1forj=1:col-n+1c=gray1(i:i+(n-1),j:j+(n-1)).*a;s=sum(sum(c));gray2(i+(n-1)/2,j+(n-1)/2)=s/(n*n);endendr=uint8(gray2);B.Makeacomparisonofnoisereductionbybothmedianfilterandaverag

5、ingfilter.function[r]=midfilter(gray,n)[row,col]=size(gray);gray1=double(gray);gray2=gray1;fori=1:row-n+1forj=1:col-n+1c=gray1(i:i+(n-1),j:j+(n-1));e=c(1,:);foru=2:ne=[e,c(u,:)];endmm=median(e);gray2(i+(n-1)/2,j+(n-1)/2)=mm;endendr=uint8(gray2);2.Edgeenhancementbymeansof

6、spatialfiltering.A.DevelopaprogramtoimplementaGradientMasktoobtainedgeofanobject(incomparewiththefunctionprovidedbyMatlab)>>subplot(231);imshow(xx);title('原图');>>eSoble=edge(xx,'sobel');>>subplot(232);imshow(eSoble);title('Soble图');>>ePrewitt=edge(xx,'prewitt');>>subplot

7、(233);imshow(ePrewitt);title('Prewitt图');>>eRobert=edge(xx,'roberts');>>subplot(234);imshow(eRobert);title('Robert图');>>eLog=edge(xx,'log');>>subplot(235);imshow(eLog);title('Log图');>>eCanny=edge(xx,'canny');>>subplot(236);imshow(eCanny);title('Canny图');B.Imageenhancemen

8、twithHigh-BoostFilteringMaskandcomparewiththeresultoftheoperationdefinedbyequation>>subplot(131);imshow

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。