




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
數(shù)字圖像處理-第四章4第一頁,共53頁。ObjectiveVeryoften,asignalorimagehasthemajorityofitsenergyinthelow-andmid-frequencyrangeofitsamplitudespectrum.Atthehigherfrequencies,theinformationofinterestisoftenburiedbynoise.Thus,afilterthatreducestheamplitudeofhigh-frequencycomponentscanreducethevisibleeffectsofnoise.4.1LowpassFilters第二頁,共53頁。第三頁,共53頁。4.1Low-passFilters4.1.1Linearfilter--TheboxFilterArectangularpulse,calledamoving-averagefilter.第四頁,共53頁。ItsFouriertransformisasincfunctionsin(s)/s.Itcanbeseenthatthelowerfrequenciesgetrelativehigheroutput.第五頁,共53頁。Bythesimilaritytheorem,thewidthofthetransferfunctionisreverselyproportionaltothewidthoftheimpulseresponse.Thewiderthewidthofthepulse,thelessthehighfrequencycomponentspass,andthemorethedangerofreversalphaseforsmallstructures.第六頁,共53頁。Sometimescalledaweighted-averagefilter.In2dimensions,ittakesontheappearanceofapyramid.Thespectrumofthetriangularpulsehastheformof[sin(s)/s]2.Itissafewithoutfearofphasereversal,becauseofthenon-negativespectrum.4.1Low-passFilters4.1.2Linearfilter—TheTriangularFilter第七頁,共53頁。DirectlymakethefrequenciesoutsideD0zero.Theimpulseresponseofthetransferfunctionisasinc.4.1LowpassFilters4.1.3Linearfilter--TheIdealLow-passFilter(ILPF)HighFrequencyCuttoff第八頁,共53頁。ringingeffectf(x)h(x)g(x)第九頁,共53頁。Thedrawbackofthisfilterfunctionisaringingeffectthatoccursalongtheedgesofthefilteredspatialdomainimage.Forthisreason,sharpcutoffinthefrequencydomainisoflimitedusefulness.第十頁,共53頁。第十一頁,共53頁。4.1Low-passFilters4.1.4Linearfilter--TheGaussianLow-passFilter
第十二頁,共53頁。4.1Low-passFilters4.1.6Non-Linearfilter–
Butterworthfilter第十三頁,共53頁。Impulseresponse第十四頁,共53頁。D0=10Morecomparison第十五頁,共53頁。第十六頁,共53頁。4.1LowpassFilters4.1.5Non-Linearfilter--
TheMedianFilter第十七頁,共53頁。Ingeneral,themedianfilterallowsagreatdealofhighspatialfrequencydetailtopasswhileremainingveryeffectiveatremovingnoiseonimageswherelessthanhalfofthepixelsinasmoothingneighbourhoodhavebeeneffected.Oneofthemajorproblemswiththemedianfilteristhatitisrelativelyexpensiveandcomplextocompute.第十八頁,共53頁。
then’thiterativeimageatpixelj
theneighborsystemofpixelj
Parameter,Euclidiandistancebetweenpixelj’andkThestrongertheedge,thelessimpactinsmoothing.Wheniterationconverges,largeedgeispreserved,andsmoothareabecomesmoresmooth.4.1LowpassFilters4.1.6Non-Linearfilter--
Edgepreservedadaptivesmoothing第十九頁,共53頁。第二十頁,共53頁。第二十一頁,共53頁。Mostofthedesignmethodsdescribedinthissectionworkbycreatingatwo-dimensionalfilterfromaone-dimensionalfilterorwindowcreatedusingfunctionsfromtheSignalProcessingToolbox.Althoughthistoolboxisnotrequired,youmightfinditdifficulttodesignfiltersintheImageProcessingToolboxifyoudonothavetheSignalProcessingToolboxaswell.濾波器設計是一個創(chuàng)建滿足指定濾波要求的濾波器參數(shù)的過程。濾波器的實現(xiàn)包括濾波器結構的選擇和濾波器參數(shù)的計算。4.1LowpassFilters4.1.7MatlabToolbox__FilterDesign第二十二頁,共53頁。原型:B=FIRPM(N,F,A);例子:b=firpm(10,[00.40.61],[1100]);[H,w]=freqz(b,1,64,'whole‘);colormap(jet(64))plot(w/pi-1,fftshift(abs(H)))figure,freqz2(h,[3232])FrequencyTransformationMethod第二十三頁,共53頁。FrequencySamplingMethodThefrequencysamplingmethodcreatesafilterbasedonadesiredfrequencyresponse.Givenamatrixofpointsthatdefinetheshapeofthefrequencyresponse,thismethodcreatesafilterwhosefrequencyresponsepassesthroughthosepoints.Hd=zeros(11,11);Hd(4:8,4:8)=1;[f1,f2]=freqspace(11,'meshgrid');mesh(f1,f2,Hd),axis([-11-1101.2]),colormap(jet(64))h=fsamp2(Hd);figure,freqz2(h,[3232]),axis([-11-1101.2])第二十四頁,共53頁。第二十五頁,共53頁。WindowingMethodTransformingasingleone-dimensionalwindowtocreateatwo-dimensionalwindowthatisnearlycircularlysymmetric,byusingaprocesssimilartorotationCreatingarectangular,separablewindowfromtwoone-dimensionalwindows,bycomputingtheirouterproductHd=zeros(11,11);Hd(4:8,4:8)=1;[f1,f2]=freqspace(11,'meshgrid');mesh(f1,f2,Hd),axis([-11-1101.2]),colormap(jet(64))h=fwind1(Hd,hamming(11));figure,freqz2(h,[3232]),axis([-11-1101.2])第二十六頁,共53頁。第二十七頁,共53頁。CreatingtheDesiredFrequencyResponseMatrix[f1,f2]=freqspace(25,'meshgrid');Hd=zeros(25,25);d=sqrt(f1.^2+f2.^2)<0.5;Hd(d)=1;mesh(f1,f2,Hd)第二十八頁,共53頁。4.2BandpassandBandstopFilters4.2.1TheIdealBandpassFilter第二十九頁,共53頁。第三十頁,共53頁。4.2BandpassandBandstopFilters4.2.2TheIdealBandstopFilter第三十一頁,共53頁。第三十二頁,共53頁。4.2BandpassandBandstopFilters4.2.3TheGeneralBandpassFilter第三十三頁,共53頁。第三十四頁,共53頁。4.2.4TheDifference-of-Gaussiansfilter第三十五頁,共53頁。Theimpulseofthefilter第三十六頁,共53頁。RulesforbandpassfilterdesignMaximumItcanbegreaterthanA-B第三十七頁,共53頁。G(0)canbetakenas1,topassthe0frequencycomponent.Itmeansthatthelowfrequencycomponentswillpersist.Frequencyatzero第三十八頁,共53頁。第三十九頁,共53頁。Ahighpassfilterisusedindigitalimageprocessingtoremoveorsuppressthelowfrequencycomponent,resultinginasharpenedimage.Highpassfiltersareoftenusedinconjunctionwithlowpassfilters第四十頁,共53頁。4.3High-FrequencyEnhancementFilters4.3.1Theidealhighpassfilter第四十一頁,共53頁。4.3.2TheButterworthhighpassfilter第四十二頁,共53頁。4.3.3Theexponentialhighpassfilter第四十三頁,共53頁。LaplacianofGaussian(L
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 單項臨時勞務合同范本
- 加盟養(yǎng)生店合同范本
- 科技展會上電影營銷報告的創(chuàng)意呈現(xiàn)
- 科技新潮物聯(lián)網(wǎng)在創(chuàng)新型供應鏈中的應用
- 胸部腫瘤的護理
- 科技如何改變醫(yī)療產(chǎn)業(yè)格局
- 科技企業(yè)如何運用知識付費提升品牌影響力
- 科技與傳統(tǒng)的碰撞智能酒店空間設計展望
- 知識產(chǎn)權助力產(chǎn)品開發(fā)推動企業(yè)創(chuàng)新發(fā)展
- 科技創(chuàng)新驅(qū)動下的生態(tài)產(chǎn)業(yè)園區(qū)發(fā)展路徑研究
- 重慶市2023年中考道德與法治試卷(A卷)(附真題答案)
- 村委會地震演練方案及流程
- 微積分(第三版)課件:多元函數(shù)微積分
- 2024年青海公務員考試行測真題及答案
- 個人下半年工作計劃范文2篇
- 山東職業(yè)學院單招《英語》考試復習題庫(含答案)
- 四年級上冊數(shù)學計算題練習300題及答案
- 滬教版二年級下冊計算題100道及答案
- 2023新課標魯教版九年級化學下冊全教案
- 《開學第一課:一年級新生入學班會》課件
- 右側腹股溝疝教學查房
評論
0/150
提交評論