欢迎来到天天文库
浏览记录
ID:20625316
大小:229.03 KB
页数:6页
时间:2018-10-14
《福建农林大学数字图像实验二》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、福建农林大学计算机与信息学院实验报告数字图像处理(双语)课程名称:(DigitalImageProcessing)姓名:王智勇系:计算机科学与技术专业:计算机科学与技术年级:2012级学号:3126010032指导教师:王长缨职称:副教授2014〜2015学年下学期福建农林大学计算机与信息学院实验报告系:计算机科7:与技术专业:计算机科9与技术年级:2012级姓名:上智勇学号:3126010032实验室号III家炳510计算机号33实验时间:2015年5月13闩指导教师签字:成绩:ExperimentIIHistogramequalizationofgraylevel
2、image(validated)(2periods)ObjectiveFullyunderstandgraylevelhistogramofimageandhistogramequalization.MethodologyImplementhistogramequalizationbyfirstcalculatecumulativedistributionfunctionandthenmapbacktoimage.EnvironmentHardware:GeneralPCOperatingsystem:WindowsXPCalculatingplatform:MATL
3、AB6.5orhigherversionExperimentindetail:1.Countthenumberofpixelsforeachgraylevels.fileFditViewInsscrtToolsDesktopWindowHelpDk®
4、□0■□BJ1ComrwindWindowTocetstarted,selectBATLABorDc;togfrontheHelpMenu.»loadCC:UeereAdmr.istratcrDe8ktop4.26atla.>iat,)»jpcsu.read(*E:MatlabTeet l.bmp*):»
5、i>show(jpg);Vaxnine:Inaeeietoobictofitonscreen;die?layinIntruesize〉legiz6l308Intmesizeat44Inat161»cray=rcb2eray.»[»^n]=3i2e(cray).»ficure(l);teeistoobictofitonscreen;diepl«yinshoK(cray>.Vatnine:Ib1.Estimatepr
6、obabilitiesofeachgraylevels.Pf(fj)=nj/nJ=OX-^L-i!55,?P);FigureFileEditViewInsertToolsDesktopWindowHelp□(^eak吸玫打®凌insanX1050100150200250300//»»gp=zeros(l,256).»fori=i:256gp(i)=length(fmd(gray=(i-1)))/h4ti;end»figure,bar(0:255«gp).»rsorlogica:*xnd(5ray=(i-l)))/n*j•55,gp):iThere,nstandfort
7、otalpixelnumber.2.Calculatecumulativedistributionfunctionofeachgraylevels.c(/)=P/(人),)=o,1,…人…L-1承matlab□H3k吸叹CISaQ文你F)5Sffl8、gray<1200x1920田i256sjpg<1200x192C,Bm1200B4n19201.Vsbrfcsoace9、—CommandHistory(KFTfor1=1:256gp(i)=len10、^th(find(gray=Iendfigure,bar(0:25S,g?);—Sl=teroe(1,256);-t>P=0.fori=l:256—tMp=tnp+^p(i);—SI(i)=tnp;—endfigure,plot(SI):J77>>Sl=zeros(l,256〉.>>tnp=0;»fori=ls256ti.p=tnp+(i,.Sl(i)=tap;©r.d»figure,plot(SI);»4
8、gray<1200x1920田i256sjpg<1200x192C,Bm1200B4n19201.Vsbrfcsoace
9、—CommandHistory(KFTfor1=1:256gp(i)=len
10、^th(find(gray=Iendfigure,bar(0:25S,g?);—Sl=teroe(1,256);-t>P=0.fori=l:256—tMp=tnp+^p(i);—SI(i)=tnp;—endfigure,plot(SI):J77>>Sl=zeros(l,256〉.>>tnp=0;»fori=ls256ti.p=tnp+(i,.Sl(i)=tap;©r.d»figure,plot(SI);»4
此文档下载收益归作者所有