




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、acheandontmecntroi prob s e g ersccor diggot hee qUe drouhootig.eg aionfom.-g nedbyhosee sonsibeort hese cuiyte unifrhe.s.e “,h"aa,eope nmiema nageroncoamine pi_Ui onjobdisr Uwihi nobecuhi. - ntroueSooig an.gver nanc_ i de porlulise sponsiefr ntDpuyM aagerte "nagew oriuhepaaggahunstucci on
2、teamhea dadhe busie ss-amet headMembe radrumaite nancepesonne aeshoui .accrdigtotherdu ange .npro.cinequime”.eWee nvionme n“ecsfse_I,i_enfochecka nue porta -,. nreciicainprogrammeforhi .- igo'ernaceFourlope np - ife donisesonsibeol_u>ev_ pro.cina roubesoo. anagemeta i de porig ofccm pr eensv&
3、gt;work.AIcescopea ndfocuste nspecionpeann-var> "er>ig.esnneleoreaangovea n.silbeforeheui ”.”.cacm pree .svlsecl onofiqupmeu uningle 一 一實(shí)驗(yàn)五圖像高通和低通濾波處理1、 實(shí)驗(yàn)?zāi)康恼莆粘S妙l域高通濾波器和低通濾波器的設(shè)計(jì)。進(jìn)一步加深理解和掌握 圖像頻譜的特點(diǎn)和頻域高通濾波及頻域低通濾波的原理。理解圖象高通 濾波和低通濾波的處理過程和特點(diǎn)。2、 實(shí)驗(yàn)要求1 .實(shí)驗(yàn)之前要預(yù)習(xí)2 .獨(dú)立完成程序的編寫3 .寫出實(shí)驗(yàn)報(bào)告4 .實(shí)驗(yàn)每組1人實(shí)驗(yàn)設(shè)備:
4、每組計(jì)算機(jī)一臺(tái)3、 實(shí)驗(yàn)原理低通濾波器:容許低頻信號(hào)通過,但減弱(或減少)頻率高於截止頻率的信 號(hào)的通過。用在繪制長期走勢或均化。高通濾波器:容許高頻信號(hào)通過、但減弱(或減少)頻率低於截止頻率信號(hào) 通過的濾波器。強(qiáng)調(diào)細(xì)節(jié)。R1 一二 低通濾波器原理圖】二維理想高通濾波器的傳遞函數(shù)為:0D u v9 DH(u, v尸 1D u ,v ) DD0是從頻率矩形中點(diǎn)測得的截止頻率長度,它將以D0為半徑的圓周內(nèi)的所有頻率置零,而毫不衰減地通過圓周外的任何頻率。但其物理上是不可實(shí)現(xiàn)的。巴特沃斯高通濾波器的傳遞函數(shù)為:1H(u,v):1 -D(u,v)式中D0為截止頻率距遠(yuǎn)點(diǎn)距離。與低通濾波器的情況一樣,可
5、認(rèn)為巴特沃斯高通型濾波器比IHPF更平滑。高斯高通濾波器傳遞函數(shù)為:H(u,v) =1 _eH2(u,v)/2D02高通濾波器能夠用高斯型低通濾波器的差構(gòu)成。這些不同的濾波器有更多的參數(shù),因此能夠?qū)V波器的形狀進(jìn)行更多的控制。4、 實(shí)驗(yàn)內(nèi)容1 .對數(shù)字圖象進(jìn)行低通濾波處理2 .對數(shù)字圖象進(jìn)行高通濾波處理3 .比較和分析所得到的結(jié)果。5、 實(shí)驗(yàn)過程1 .流程圖開始2 .試驗(yàn)程序% 選擇圖片路徑及顯示 global feonduy dui ngma.requipme.r hhuuefea ndalele s.toe sgnae isbatudesandle opea.no-u pmenlnt hi
6、equ pmetadUe c.n.s2e-ipmentepae ime "os cmane nauuheUaleislWceawektkee quipmeanddee ctvldei c oi nura-he.n- ncyl nspedon. Tem- d edU dtle ip ti fi i i-ithesupeofmaite nanceesonnel udesa Idloanbeauandinspeuinoffkylqupment,aragah"eowneauSonalaUeUnicapesnne souldbeuarie dou - lyalew. steVsiln
7、se Uin.Eve ningCcntr oloom-.sdonua samsponta ne usumbust onunde.oubesooi.hepjandllid afi1 hmov gra d r walsteafeyupevi son.nuonndi ntiu - impeme ntt itficatonmesursProouCineUnol I gye uin:ise sonsbe.r.ul -hooti ngWe heexistS upe pacyuanSupe%選擇圖片路徑filename,pathname= .uigetfile('*.bmp''*.j
8、pg''*gif''*tif','%打開文件類型,對話框名稱f=imread(pathname filename);axes(handles.axes1);%.表示與下行連接 選擇圖片');%在 axes1 顯示原圖像imshow(f) ;title('原始圖像');% - Executes on selection change in popupmenu1.function popupmenu1_Callback(hObject, eventdata, handles)% hObject handle to popupm
9、enu1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array%contentsget(hObject,'Value') returns selected item from pop
10、upmenu1global fva=get(handles.popupmenu1,'Value');val=get(hObject,'Value');switch val%用 switch 語句設(shè)置選項(xiàng)case 1g=fft2(f);g=fftshift(g);M,N=size(g);nn=2;d0=20;m=fix(M/2);n=fix(N/2);for i=1:M%巴特沃斯高通濾波器% 傅立葉變換% 轉(zhuǎn)換數(shù)據(jù)矩陣% 二階 Butterworth 高通濾波器%截止頻率為10for j=1:Nd=sqrt(i-m)A2+(j-n)A2);h=1/(1+d0/(0
11、.414*d)A(2*nn);%計(jì)算高通濾波器傳遞函數(shù) result(i,j)=h*g(i,j);endendresult=ifftshift(result);y2=ifft2(result);y3=uint8(real(y2);axes(handles.axes2);imshow(y3); % 顯示濾波處理后的圖像title('巴特沃斯高通濾波);case 2%巴特沃斯低通濾波g=fft2(f);g=fftshift(g);% 傅立葉變換% 轉(zhuǎn)換數(shù)據(jù)矩陣ached)andon-timecontrol problems;severitygreaterrisk,accor dingtot
12、 here quire dtroubleshooting,registratictacom prehe nsiveinspecti onofequi pment,r unningthe squadl eaM,N=size(g); nn=2;d0=30;m=fix(M/2);n=fix(N/2);for i=1:M%二階巴特沃斯(Butterworth)低通濾波器%截止頻率為10for j=1:Nd=sqrt(i-m)A2+(j-n)A2);h=1/(1+0.414*(d/d0)A(2*nn);% 計(jì)算低通濾波器傳遞函數(shù) result(i,j)=h*g(i,j);endendresult=iff
13、tshift(result);y2=ifft2(result);y3=uint8(real(y2);axes(handles.axes3);imshow(y3); % 顯示濾波處理后的圖像title('巴特沃斯低通濾波')case 3 %理想高通濾波k=fft2(f);% 傅立葉變換g=fftshift(k);% 轉(zhuǎn)換數(shù)據(jù)矩陣M,N=size(g);d0=10;%截止頻率為10m=fix(M/2);n=fix(N/2);for i=1:Mfor j=1:Nd=sqrt(i-m)A2+(j-n)A2); % 計(jì)算高通濾波器傳遞函數(shù) if d<=d0h=0;else h=1;
14、endresult(i,j)=h*g(i,j);endendresult=ifftshift(result);y2=ifft2(result);y3=uint8(real(y2);axes(handles.axes4);imshow(y3);title('理想高通濾波)case 4 k=fft2(f);% 理想低通濾波% 傅立葉變換% 轉(zhuǎn)換數(shù)據(jù)矩陣g=fftshift(k);acheandontmecntroi prob s e g ersccor diggot hee qUe drouhootig.eg aionfom.-g nedbyhosee sonsibeort hese cu
15、iyte unifrhe.s.e “,h"aa,eope nmiema nageroncoamine pi_Ui onjobdisr Uwihi nobecuhi. - ntroueSooig an.gver nanc_ i de porlulise sponsiefr ntDpuyM aagerte "nagew oriuhepaaggahunstucci onteamhea dadhe busie ss-amet headMembe radrumaite nancepesonne aeshoui .accrdigtotherdu ange .npro.cinequime
16、”.eWee nvionme n“ecsfse_I,i_enfochecka nue porta -,. nreciicainprogrammeforhi .- igo'ernaceFourlope np - ife donisesonsibeol_u>ev_ pro.cina roubesoo. anagemeta i de porig ofccm pr eensv>work.AIcescopea ndfocuste nspecionpeann-var> "er>ig.esnneleoreaangovea n.silbeforeheui ”.”.ca
17、cm pree .svlsecl onofiqupmeu uningle 一 一acheandontmecntroi prob s e g ersccor -got here qUe drouhootig.eg aicacm pree . s nsecl onofiqupme, unLgle . - d -onfm.nsg nndbyhooee sonslbeort hee .yte unifrhe.sale inThidiaceope nminma nvincoabine pl-Ui on”.“ Uwihinosecu hiddentrue Soo.g a nngo nancide porl
18、ilbse sponsiefr 一 ” pUyM a,e "nngew or”epaagahcnl>uci one-hea dadhe busie amet h_iM_be radrumaite nannepesonne aesoul .iccrdigttherdu ange .npr.cinnquime"a.acile -n.sl- nVionme n“ecsf “idde nfchhcca nde po" I dbyi die nr“ic”nprogrrmme"i die igo'er naceFourlope np - iae dns
19、e .onlUaeorthsue pr.cina roubesoo. m anngeta I de poring ofumpr ee n-ew orkAtUe .oppa ndfouste nseci onpesnn<a.os ls.peiaig| esnnueoreaingovea nds.beaeheii ” cinaeatunduM,N=size(g);d0=30;%截止頻率為30m=fix(M/2);n=fix(N/2);for i=1:Mfor j=1:Nd=sqrt(i-m)A2+(j-n)A2); %計(jì)算高通濾波器傳遞函數(shù) if d<=d0h=1;else h=0;e
20、ndresult(i,j)=h*g(i,j);endendresult=ifftshift(result);y2=ifft2(result);y3=uint8(real(y2);axes(handles.axes5);imshow(y3);title('理想低通濾波')end;3.實(shí)驗(yàn)結(jié)果eonduy dui ngma.requipme.r hhuuefea ndalele s.toe sgnae isbatudesandle opea.no-u pmenlnt hiequ pmetadUe c.n.s2e-ipmentepae ime "os cmane nauuh
21、eUaleislWceawektkee quipmeanddee ctvldei c oi nura-he.n- ncyl nspedon. Tem- d edU dtle ip ti fi i i-ithesupeofmaite nanceesonnel udesa Idloanbeauandinspeuinoffkylqupment,aragah"eowneauSonalaUeUnicapesnne souldbeuarie dou - lyalew. steVsilnse Uin.Eve ningCcntr oloom-.sdonua samsponta ne usumbust
22、 onunde.oubesooi.hepjandllid afi1 hmov gra d r walsteafeyupevi son.nuonndi ntiu - impeme ntt itficatonmesursProouCineUnol I gye uin:ise sonsbe.r.ul -hooti ngWe heexistS upe pacyuanSupeacheandontmecntroi prob s e g ersccor diggot hee qUe drouhootig.eg aionfom.-g nedbyhosee sonsibeort hese cuiyte unif
23、rhe.s.e “,h"aa,eope nmiema nageroncoamine pi_Ui onjobdisr Uwihi nobecuhi. - ntroueSooig a n.over nanc_ i de porlulise sponsiefr ntDpUyM aagerte "nagew oriuhepaaggahunstucci onteamhea dadhe busie ss-amet headMembe radrumaite nancepesonne aeshoui .accrdigtotherdu ange .npro.cinequime”.eWee n
24、vionme n“ecsfse_I,i_enfochecka nue porta -,. nreciicainprogrammeforhi .- igo'ernaceFourlope np - ife donisesonsibeol_u>ev_ pro.cina roubesoo. anagemeta i de porig ofccmpr eensv>work.AIcescopea ndfocuste nspecionpeann-var> "er>ig.esnneleoreaangovea n.silbeforeheui ”.”.cacm pree .svlsecl onofiqupmeu u
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 期刊編輯的學(xué)術(shù)期刊版權(quán)風(fēng)險(xiǎn)管理考核試卷
- 建筑工程用機(jī)械設(shè)備的電氣控制系統(tǒng)改進(jìn)考核試卷
- 方便面生產(chǎn)設(shè)備的選型與使用維護(hù)考核試卷
- 增強(qiáng)現(xiàn)實(shí)教具探索考核試卷
- 掌握關(guān)鍵對話實(shí)現(xiàn)有效溝通考核試卷
- 信托在文化資產(chǎn)交易平臺(tái)建設(shè)的投資管理與運(yùn)營考核試卷
- 出租舊廟合同范本
- 別墅電梯保養(yǎng)合同范本
- 體育賽事策劃及運(yùn)營服務(wù)合同
- 會(huì)議組織及參展合同
- 泛讀2unit2-music
- 世界技能大賽PPT幻燈片課件(PPT 21頁)
- 中學(xué)生防溺水安全教育課件(PPT 44頁)
- Python程序設(shè)計(jì)ppt課件完整版
- T∕ZSQX 008-2020 建設(shè)工程全過程質(zhì)量行為導(dǎo)則
- 2019版外研社高中英語選擇性必修二Unit 1 Growing up 單詞表
- 《腹膜透析》ppt課件
- 安徽省2020-2021學(xué)年七年級(jí)語文下學(xué)期期末測試卷[含答案]
- CFA考試一級(jí)章節(jié)練習(xí)題精選0329-7(附詳解)
- 人教版三年級(jí)數(shù)學(xué)下冊各單元教材分析(全冊共九個(gè)單元)
- 公司駕駛員承諾書
評論
0/150
提交評論