




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、§ 5.4 Radon變換5.4.4 Matlab 中的實現(xiàn) 4例、對一個正方形黑框進行 Radon 變換。I=zeros(200,200);I(100:170,100:170)=1;% to produce a square black frameFigure,imshow(I) ;title('origine image') ; to do Radon transform of 0 and 25 degreeR,xp=radon(I,0 25);% to calculate the Radon transform of the black frame,% R sh
2、ows the Radon transform values for theta angles: % 0 and 25 degree;% xp矢量表示沿?'軸相應的坐標值subplot(1,3,2),plot(xp,R(:,1);title('R(OS)(xprime)');subplot(1,3,3),plot(xp,R(:,2);title('R(25Ao)(xprime)');origins image-200 0 20080706050403D20100200 0 200% to do Radon tran sform from 0 degree
3、 to 180 degreetheta=0:180;% to define an an gular vector from 0 to 180 degreeR,xp=radon(l,theta); % to calculate Radon Transform from 0 to 180figure, imagesc(theta,xp,R);% IMAGESC(.) is the same as IMAGE(.) except the data is % scaled to use the full colormap 也就是說,imagesc能自動 %調(diào)整值域范圍title('R_thet
4、a(Xprime)');xlabel('theta(degree)');ylabel('X'prime');set(gca,'Xtick',0:20:180);% to set the properties of axiscolormap(hot);2colorbar; %顯示顏色條,將圖像中使用的色彩排列在圖像旁邊-100-5D050100020406080100120140160180©(degree)908070GO4030203#MATLAB中的逆Radon變換函數(shù),是利用濾波后向投影算法來 計算逆變換R=ira
5、do n( R,theta)其中R=radon(l,theta)是圖像I的Radon變換:1) 在求逆變換時,利用R各列中的投影來構造圖像I的近似值;2) 使用的投影數(shù)越多,所獲得的圖像越接近原始圖像;3) theta矢量必須是固定增量的均勻矩陣,即每次角度增加值為常數(shù),若角度增加值已知,可以作為參數(shù)取代theta值傳入 iradon 函數(shù);4)投影值含有噪聲時,可以通過加窗消去高頻噪聲:IR=iradon(R,theta,'Shepp-Logan');% 采用 Shepp-Logan 窗做濾波: The Shepp-Logan filter multiplies% the R
6、am-Lak filter by a sinc function.IR=iradon(R,theta,' Cosine');% 采用 Cosine 窗做濾波: The cosine filter multiplies the Ram-Lak% filter by a cosine function.IR=iradon(R,theta, 'Hamming');% 采用 Hamming 窗做濾波: The Hamming filter multiplies the% Ram-Lak filter by a Hamming window.IR=iradon(R,the
7、ta,0.90);% iradon 允許指定歸一化頻率 D ,高于 D 的濾波器響應為零,整 % 個濾波器壓縮在 0,D 的范圍內(nèi)。假若系統(tǒng)不含高頻信息而存在 % 高頻噪聲時可用來完全擬制噪聲,又不會影響圖像重建。例、從一個簡單圖像的投影重建圖像在 Matlab 圖像處理工具箱中的 Phantom 函數(shù),可以產(chǎn)生 Shepp Logan 的大腦圖, 該圖作為一個測試圖, 可反映人大腦的許多性質。P=phantom(256);% P = PHANTOM(DEF,N) generates an image of a head phantom that can % be usedto test th
8、e numerical accuracy of RADON and IRADON or other % 2-D reconstruction algorithms. P is a grayscaleintensity image that % consists of one large ellipse (representing the brain) containing % several smaller ellipses (representingfeatures in the brain). figure,imshow(P);title('image of a head phan
9、tom of Shepp-Logg');theta1=0:10:170;R1,xp=radon(P,theta1);% to calculate radon transform of R1 which includes 18 angles theta2=0:5:175;R2,xp=radon(P,theta2);% to calculate radon transform of R2 which includes 36 angles theta3=0:2:178;R3,xp=radon(P,theta3);% to calculate radon transform of R3 whi
10、ch includes 90 angles figure,imagesc(theta1,xp,R1);% IMAGESC(.) is the same as IMAGE(.) except the data is% scaled to usethe full colormap.title('R_theta(Xprime)'); title('radon transform of 18 angles for Shepp-logan head phanto '); xlabel('theta(degree)');ylabel('Xprime&
11、#39;); set(gca,'Xtick',0:20:180); % to set the properties of axis colormap(hot);colorbar;figure, imagesc(theta2,xp,R2); title('radon transform of 36 angles for Shepp-logan head phanto'); xlabel('theta(degree)');ylabel('Xprime');set(gca,'Xtick',0:20:180);% to s
12、et the properties of axiscolormap(hot);colorbar;figure, imagesc(theta3,xp,R3);title('radon transform of 90 angles for Shepp-logan head phanton'); xlabel('theta(degree)');ylabel('Xprime');set(gca,'Xtick',0:20:180);% to set the properties of axiscolormap(hot);colorbar;I
13、R1=iradon(R1,theta1,0.85); % 指定歸一化頻率為 0。 85 figure,imshow(IR1);title('reconstruction for radon transform of 18 angles');IR2=iradon(R2,theta2,0.85);figure,imshow(IR2);title('reconstruction for radon transform of 36 angles');IR3=iradon(R3,theta3,0.85);figure,imshow(IR3);title('rec on structi on for radon tran sform of 90 an gles');7#image of a head phantom nf Shepp-Logg#radon transform of 18 angles for Shepp-logan head pharito02040 BO 80100120140160©(degree)-60-505這個圖的外部橢圓形是頭骨,內(nèi)部的橢圓形是大腦的內(nèi)部特征或者是腫瘤。150100-50050100150#adon transf
溫馨提示
- 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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 模范機關觀摩活動方案
- 榴蓮抽獎活動方案
- 四下數(shù)學期末必考《三角形》計算題
- 四年級下冊數(shù)學期末重點復習:運算律
- 水分虧缺條件下生物質炭對水稻生長及鎘含量的影響研究
- 計算思維驅動企業(yè)增長策略
- 智能陪伴機器人的情感交互設計
- 《葬花吟》中的詩意神韻與意象創(chuàng)新解讀
- 深度學習在智能交通中的應用
- 大學生社交焦慮心理干預模式與效果評估
- 2023年音樂考試真題
- GB/T 16924-2008鋼件的淬火與回火
- 基礎護理學:肌內(nèi)注射
- 應急值守專題培訓課件
- DB23T 1318-2020 黑龍江省建設施工現(xiàn)場安全生產(chǎn)標準化實施標準
- 新加坡公司法-英文版
- 醫(yī)院管理腎內(nèi)科腹膜透析護理常規(guī)
- 自動控制原理浮球液位控制系統(tǒng)課程設計
- 離婚一方財產(chǎn)轉移
- 隧道施工安全技術教育培訓記錄(共19頁)
- (完整版)四川建龍軟件全套表格
評論
0/150
提交評論