版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、.Matlab實用程序圖像處理實例分析實例67:圖像的塊操作h0=figuretoolbar,none,. position,198 56 350 468,. name,實例67;h1=axesparent,h0,. position,0.2 0.45 0.6 0.5,. visible,off;I=imreadtire.tif;imshowIb1=uicontrolparent,h0,. units,points,. tag,b1,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,邊沿操作,. position,30 1
2、00 50 20,. callback,. cla,. I=imreadtire.tif;,. f=inlinemaxx:;,. I2=nlfilterI,2 2,f;,. imshowI2;b2=uicontrolparent,h0,. units,points,. tag,b2,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,顯示塊操作,. position,100 100 50 20,. callback,. cla,. I=imreadtire.tif;,. f=inlineuint8roundmean2x*on
3、essizex;,. I2=blkprocI,6 6,f;,. imshowI2;b3=uicontrolparent,h0,. units,points,. tag,b3,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,交疊塊操作,. position,170 100 50 20,. callback,. cla,. I=imreadtire.tif;,. f=inlineuint8roundmean2x*onessizex;,. I2=blkprocI,6 6,3 3,f;,. imshowI2;b4=uicontr
4、olparent,h0,. units,points,. tag,b4,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,關閉,. fontsize,14,. position,90 50 70 30,. callback,close;實例68:圖形的過濾操作h0=figuretoolbar,none,. position,198 56 350 468,. name,過濾操作;h1=axesparent,h0,. position,0.3 0.45 0.5 0.5,. visible,off;I=imreadblood1.
5、tif;imshowIb1=uicontrolparent,h0,. units,points,. tag,b1,. style,pushbutton,. backgroundcolor,0.75 0.75 0.75,. string,均平過濾,. position,50 120 50 20,. callback,. cla,. I=imreadblood1.tif;,. h=fspecialaverage,6;,. I2=uint8roundfilter2h,I;,. imshowI2;b2=uicontrolparent,h0,. units,points,. tag,b2,. style
6、,pushbutton,. backgroundcolor,0.75 0.75 0.75,. string,Sobel過濾,. position,150 120 50 20,. callback,. cla,. I=imreadblood1.tif;,. h=fspecialsobel;,. I2=filter2h,I;,. imshowI2,;b1=uicontrolparent,h0,. units,points,. tag,b1,. style,pushbutton,. backgroundcolor,0.75 0.75 0.75,. string,關閉,. position,85 60
7、 80 30,. callback,close; 實例69:圖像的頻率操作h0=figuretoolbar,none,. position,198 56 350 468,. name,頻率操作;h1=axesparent,h0,. position,0.3 0.45 0.5 0.5,. visible,off;b=remez10,0 0.4 0.6 1,1 1 0 0;h=ftrans2b;H,W=freqzb,1,64,whole;colormapjet64plotW/pi-1,fftshiftabsHb1=uicontrolparent,h0,. units,points,. tag,b1
8、,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,頻率變換,. position,30 100 50 20,. callback,. cla,. b=remez10,0 0.4 0.6 1,1 1 0 0;,. h=ftrans2b;,. H,W=freqzb,1,64,whole;,. colormapjet64,. freqz2h,32 32;b2=uicontrolparent,h0,. units,points,. tag,b2,. backgroundcolor,0.75 0.75 0.75,. style,p
9、ushbutton,. string,頻率采樣一,. position,100 100 50 20,. callback,. cla,. Hd=zeros11,11;,. Hd4:8,4:8=1;,. f1,f2=freqspace11,meshgrid;,. meshf1,f2,Hd,. axis-1 1 -1 1 0 1.2,. colormapjet64;b3=uicontrolparent,h0,. units,points,. tag,b3,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,頻率采樣二,. pos
10、ition,170 100 50 20,. callback,. cla,. Hd=zeros11,11;,. Hd4:8,4:8=1;,. H=fsamp2Hd;,. freqz2h,32 32,. axis-1 1 -1 1 0 1.2,. colormapjet64;b4=uicontrolparent,h0,. units,points,. tag,b4,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,關閉,. fontsize,15,. position,80 50 80 30,. callback,close
11、;實例70:函數(shù)變換h0=figuretoolbar,none,. position,198 56 350 468,. name,函數(shù)變換;h1=axesparent,h0,. position,0.25 0.45 0.5 0.5,. visible,off;I=imreadcameraman.tif;imshowIb1=uicontrolparent,h0,. units,points,. tag,b1,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,圖像壓縮,. position,30 100 50 20,. cal
12、lback,. cla,. I=imreadcameraman.tif;,. I2=im2doubleI;,. imshowI2;b2=uicontrolparent,h0,. units,points,. tag,b2,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,圖像解壓,. position,100 100 50 20,. callback,. cla,. I=imreadcameraman.tif;,. I=im2doubleI;,. T=dctmtx8;,. B=blkprocI,8 8,P1*x*P2,T,
13、T;,. mask=1 1 1 1 0 0 0 0;,. 1 1 1 0 0 0 0 0;,. 1 1 0 0 0 0 0 0;,. 1 0 0 0 0 0 0 0;,. 0 0 0 0 0 0 0 0;,. 0 0 0 0 0 0 0 0;,. 0 0 0 0 0 0 0 0;,. 0 0 0 0 0 0 0 0;,. B2=blkprocB,8 8,P1.*x,mask;,. I2=blkprocB2,8 8,P1*x*P2,T,T;,. imshowI2;b3=uicontrolparent,h0,. units,points,. tag,b3,. backgroundcolor,0.7
14、5 0.75 0.75,. style,pushbutton,. string,線條解析,. position,170 100 50 20,. callback,. cla,. I=imreadcameraman.tif;,. BW=edgeI;,. imshowBW;b4=uicontrolparent,h0,. units,points,. tag,b4,. backgroundcolor,0.75 0.75 0.75,. style,pushbutton,. string,關閉,. fontsize,15,. position,80 50 80 30,. callback,close;實
15、例71:RADON函數(shù)變換h0=figuretoolbar,none,. position,198 56 350 468,. name,實例71;h1=axesparent,h0,. position,0.3 0.45 0.5 0.5,. visible,off;P=phantom256;imshowPb1=uicontrolparent,h0,. units,points,. tag,b1,. style,pushbutton,. string,變換一,. backgroundcolor,0.75 0.75 0.75,. position,30 100 50 20,. callback,.
16、cla,. k=1;,. theta1=0:10:170;,. R1=radonP,theta1;,. imagescR1,. colormaphot,. colorbar;b2=uicontrolparent,h0,. units,points,. tag,b2,. style,pushbutton,. string,變換二,. backgroundcolor,0.75 0.75 0.75,. position,100 100 50 20,. callback,. cla,. k=2;,. theta2=0:5:175;,. R2=radonP,theta2;,. imagescR2,. c
17、olormaphot,. colorbar;b3=uicontrolparent,h0,. units,points,. tag,b3,. style,pushbutton,. string,變換三,. backgroundcolor,0.75 0.75 0.75,. position,170 100 50 20,. callback,. cla,. k=3;,. theta3=0:2:178;,. R3=radonP,theta3;,. imagescR3,. colormaphot,. colorbar;b4=uicontrolparent,h0,. units,points,. tag,
18、b4,. style,pushbutton,. string,原始圖像,. backgroundcolor,0.75 0.75 0.75,. position,50 50 70 30,. callback,. cla,. if k=1,. I1=iradonR1,10;,. imshowI1,. end,. if k=2,. I2=iradonR2,5;,. imshowI2,. end,. if k=3,. I3=iradonR3,2;,. imshowI3,. end; b5=uicontrolparent,h0,. units,points,. tag,b5,. style,pushbu
19、tton,. string,關閉,. backgroundcolor,0.75 0.75 0.75,. position,150 50 70 30,.callback,close;實例72:圖像分析1h0=figuretoolbar,none,. position,198 56 350 468,. name,實例72;h1=axesparent,h0,. position,0.25 0.45 0.5 0.5,. visible,off;I=imreadrice.tif;imshowIk=0;b1=uicontrolparent,h0,. units,points,. tag,b1,. styl
20、e,pushbutton,. string,圖像輪廓圖,. backgroundcolor,0.75 0.75 0.75,. position,20 100 60 20,. callback,. cla,. k=1;,. I=imreadrice.tif;,. imcontourI;b2=uicontrolparent,h0,. units,points,. tag,b2,. style,pushbutton,. string,SOBEL邊界圖,. backgroundcolor,0.75 0.75 0.75,. position,100 100 60 20,. callback,. cla,
21、. k=2;,. I=imreadrice.tif;,. BW=edgeI,sobel;,. imshowBW;b3=uicontrolparent,h0,. units,points,. tag,b3,. style,pushbutton,. string,CANNY邊界圖,. backgroundcolor,0.75 0.75 0.75,. position,180 100 60 20,. callback,. cla,. k=3;,. I=imreadrice.tif;,. BW=edgeI,canny;,. imshowBW;b4=uicontrolparent,h0,. units,
22、points,. tag,b4,. style,pushbutton,. string,灰度調(diào)整,. backgroundcolor,0.75 0.75 0.75,. position,20 50 60 20,. callback,. cla,. k=4;,. I=imreadrice.tif;,. J=imadjustI,0.15 0.9,0 1;,. imshowJ,64;b5=uicontrolparent,h0,. units,points,. tag,b5,. style,pushbutton,. string,圖像柱狀圖,. backgroundcolor,0.75 0.75 0.
23、75,. position,180 50 60 20,. callback,. if k=0,. figure,. imhistI,64,. end,. if k=1,. imhistI,64,. end,. if k=2,. imhistBW,64,. end,. if k=3,. imhistBW,64,. end,. if k=4,. imhistJ,. end;b6=uicontrolparent,h0,. units,points,. tag,b6,. style,pushbutton,. string,關閉,. backgroundcolor,0.75 0.75 0.75,. po
24、sition,100 50 60 20,. callback,close;實例73:過濾圖像h0=figuretoolbar,none,. position,198 56 350 468,. name,實例73;h1=axesparent,h0,. position,0.25 0.45 0.5 0.5,. visible,off;I=imreadeight.tif;imshowIu1=uimenuparent,h0,. tag,u1,. label,添加噪聲,. backgroundcolor,0.75 0.75 0.75;u11=uimenuparent,u1,. tag,u11,. lab
25、el,SALT&PEPPER噪聲,. backgroundcolor,0.75 0.75 0.75,. callback,. setu11,checked,on;,. setu12,checked,off;,. cla,. I=imnoiseI,salt & pepper,0.02;,. imshowI;u12=uimenuparent,u1,. tag,u12,. label,GAUSSIAN噪聲,. backgroundcolor,0.75 0.75 0.75,. callback,. setu12,checked,on;,. setu11,checked,off;,. cla,. I=i
26、mnoiseI,gaussian,0,0.005;,. imshowI;b1=uicontrolparent,h0,. units,points,. tag,b1,. style,pushbutton,. string,均平過濾,. backgroundcolor,0.75 0.75 0.75,. position,30 100 50 20,. callback,. cla,. J=filter2fspecialaverage,3,I/255;,. imshowJ;b2=uicontrolparent,h0,. units,points,. tag,b2,. style,pushbutton,
27、. string,中值過濾,. backgroundcolor,0.75 0.75 0.75,. position,100 100 50 20,. callback,. cla,. J=medfilt2I,3 3;,. imshowJ;b3=uicontrolparent,h0,. units,points,. tag,b3,. style,pushbutton,. string,自適應過濾,. backgroundcolor,0.75 0.75 0.75,. position,170 100 50 20,. callback,. cla,. J=wiener2I,5 5;,. imshowJ
28、;b4=uicontrolparent,h0,. units,points,. tag,b4,. style,pushbutton,. string,關閉,. fontsize,15,. backgroundcolor,0.75 0.75 0.75,. position,90 50 70 30,. callback,close;實例74:圖像的區(qū)域處理h0=figuretoolbar,none,. position,198 56 350 468,. name,實例74;h1=axesparent,h0,. position,0.25 0.45 0.5 0.5,. visible,off;I=i
29、mreadtrees.tif;imshowIb1=uicontrolparent,h0,. units,points,. tag,b1,. style,pushbutton,. string,區(qū)域過濾一,. backgroundcolor,0.75 0.75 0.75,. position,30 100 50 20,. callback,. cla,. I=imreadtrees.tif;,. imshowI,. BW=roipoly;,. h=fspecialunsharp;,. I2=roifilt2h,I,BW;,. imshowI2;b2=uicontrolparent,h0,. un
30、its,points,. tag,b2,. style,pushbutton,. string,區(qū)域過濾二,. backgroundcolor,0.75 0.75 0.75,. position,100 100 50 20,. callback,. cla,. BW=imreadtext.tif;,. f=inlineimadjustx,0.01;,. I2=roifilt2I,BW,f;,. imshowI2;b3=uicontrolparent,h0,. units,points,. tag,b3,. style,pushbutton,. string,區(qū)域填充,. backgroundc
31、olor,0.75 0.75 0.75,. position,170 100 50 20,. callback,. cla,. load trees,. I=ind2grayX,map;,. imshowI,. I2=roifill;,. imshowI2;b4=uicontrolparent,h0,. units,points,. tag,b4,. style,pushbutton,. string,關閉,. backgroundcolor,0.75 0.75 0.75,. position,90 50 70 30,. callback,close;實例75:圖像的顏色處置h0=figure
32、toolbar,none,. position,198 56 350 468,. name,實例75;h1=axesparent,h0,. position,0.12 0.45 0.75 0.5,. visible,off;I=imreadflowers.tif;imshowIb1=uicontrolparent,h0,. units,points,. tag,b1,. style,pushbutton,. string,減少顏色,. backgroundcolor,0.75 0.75 0.75,. position,30 100 50 20,. callback,. cla,. X,map=
33、imreadflowers.tif;,. Y,map2=imapproxX,map,64;,. imageY,. colormapmap2;b2=uicontrolparent,h0,. units,points,. tag,b2,. style,pushbutton,. string,顏色抖動,. backgroundcolor,0.75 0.75 0.75,. position,100 100 50 20,. callback,. cla,. I=imreadflowers.tif;,. X,map=rgb2indI,128,nodither;,. imshowX;b3=uicontrol
34、parent,h0,. units,points,. tag,b3,. style,pushbutton,. string,顏色轉換一,. backgroundcolor,0.75 0.75 0.75,. position,170 100 50 20,. callback,. cla,. I=imreadflowers.tif;,. Y=rgb2ntscI;,. J=Y:,:,1;,. imshowJ;b4=uicontrolparent,h0,. units,points,. tag,b4,. style,pushbutton,. string,關閉,. backgroundcolor,0.
35、75 0.75 0.75,. position,170 50 50 20,. callback,close;b5=uicontrolparent,h0,. units,points,. tag,b5,. style,pushbutton,. string,顏色轉換三,. backgroundcolor,0.75 0.75 0.75,. position,100 50 50 20,. callback,. cla,. I=imreadflowers.tif;,. J=rgb2ycbcrI;,. imshowJ;b6=uicontrolparent,h0,. units,points,. tag,b6,. style,pushbutton,. string,顏色轉換二,. backgroundcolor,0.75 0.75 0.75,. positio
溫馨提示
- 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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 麻雀主題課程設計意圖
- 連接板沖壓課程設計
- 算法與計算方法課程設計
- 2024年學校安全工作應急預案
- 2024年一年級語文上全冊各單元測試題分解
- 年度其它新型計算機外圍設備戰(zhàn)略市場規(guī)劃報告
- 年度碳纖維預浸布市場分析及競爭策略分析報告
- 2025年度專業(yè)打印紙銷售渠道建設合同4篇
- 2025年度新能源項目出借咨詢及項目管理協(xié)議4篇
- 2025年新型門窗安裝工程承包合同4篇
- 第21課《鄒忌諷齊王納諫》對比閱讀 部編版語文九年級下冊
- 2024年安全員-C證考試題庫及答案(1000題)
- 餐廚垃圾收運安全操作規(guī)范
- 皮膚內(nèi)科過敏反應病例分析
- 電影《獅子王》的視聽語言解析
- 妊娠合并低鉀血癥護理查房
- 煤礦反三違培訓課件
- 2024年中國航空發(fā)動機集團招聘筆試參考題庫含答案解析
- 當代中外公司治理典型案例剖析(中科院研究生課件)
- 動力管道設計手冊-第2版
- 2022年重慶市中考物理試卷A卷(附答案)
評論
0/150
提交評論