版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、s and Settings/Administrator/桌面/代碼/第23章/代碼23-s and Settings/Administrator/桌面/代碼/第23章/代碼23-figure, imshow(f),title(Original figure,imshow(PF),title(Prewitt figure,imshow(RF),title(Roberts n of Gaussian (LoG) figure,imshow(CF),title(Canny s and Settings/Administrator/桌面/代碼/第23章/代碼23-1.txt2011-5-16 s a
2、nd Settings/Administrator/桌面/代碼/第23章/代s and Settings/Administrator/桌面/代碼/第23章/代碼23-% 使用垂直Sobel算子,自動選擇閾VSFATfigure, imshow(f),title(Original figure,imshow(VSFAT),title(Sobel Filter - Automatic figure,imshow(SFST),title(Sobel Filter (Horizontal and Vertical); % 顯示邊緣探測圖像s45=-2 -1 0;-1 0 1;0 1 2;figure,
3、imshow(SFST45),title(SobelFilter(45sm45=0 1 2;-1 0 1;-2 -1 0;figure,imshow(SFSTM45),title(Sobel Filter (-45 s and Settings/Administrator/桌面/代碼/第23章/代碼23-2.txt2011-5-16 s and Settings/Administrator/桌面/代碼/第23章/代碼23-Is and Settings/Administrator/桌面/代碼/第23章/代碼23-I=rotI=e(I,33,crop); % 圖像旋轉(zhuǎn),該函數(shù)具體用法在本書13.
4、3.3有介紹fig1=BW=H,theta,rho = figure, imshow(imadjust(mat2gray(H),XData,theta,YData,rho,.% 設(shè)置顯示屬性 xlabel(theta(degrees),ylabel(rho); axis on, axis normal, hold on; P = houghpeaks(H,5,threshold,ceil(0.3*max(H(:); x = theta(P(:,2);y=s and Settings/Administrator/桌面/代碼/第23章/代碼23-3.txt2011-5-16 s and Setti
5、ngs/Administrator/桌面/代碼/第23章/代碼23-全局閾值 s and Settings/Administrator/桌面/代碼/第23章/代碼23-全局閾值 display(Threshold(T)-Iterative); figure,imshow(f),title(Original title(Global Thresholding - Iterative Method); % 圖像標題display(Threshold(T) - Otsus Method); title(Global Thresholding - Otsus Method); display(Thre
6、shold(T) - Local Thresholding); s and Settings/Administrator/桌面/代碼/第23章/代碼23-4.txt2011-5-16 s and Settings/Administrator/桌面/代碼/第23章/代碼23-title(Original Image); title(Negative Image); title(Watershed - Distance s and Settings/Administrator/桌面/代碼/第23章/代碼23-title(Original Image); title(Negative Image);
7、 title(Watershed - Distance ed - Watershed and original sq=sqrt(imfilter(fd,h,replicate).2+imfilter(fd,h,replicate).2); % title(Watershed-Gradient); ed - Watershed and original title(Watershed-MarkerControlled); title(Watershed-GradientandMarkerControlled); ed - Watershed (GM) and original image);s
8、and Settings/Administrator/桌面/代碼/第23章/代碼23-5.txt2011-5-16 s and Settings/Administrator/桌面/代碼/第23章/代碼23-s and Settings/Administrator/桌面/代碼/第23章/代碼23-if numel(s)=1 for k=1:length(s1)gtitle(Segmented Image - Region Growing);s and Settings/Administrator/桌面/代碼/第23章/代碼23-6.txt2011-5-16 s and Settings/Admi
9、nistrator/桌面/代碼/第23章/s and Settings/Administrator/桌面/代碼/第23章/代碼23-I=8(11112361121456111177711116652022202212320222220547202220209124020222020131415Ss and Settings/Administrator/桌面/代碼/第23章/代碼23-7.txt2011-5-16 s and Settings/Administrator/桌面/代碼/第23章/代碼23-I=s and Settings/Administrator/桌面/代碼/第23章/代碼23-
10、I=Sblocks = fordim=512256128643216842numblocks=length(find(S=dim); if (numblocks 0)values=8(1),dimdimvalues(2:dim,2:dim,:) = blocks = blocks(end,1:end)=blocks(1:end,end)=1; figure, s and Settings/Administrator/桌面/代碼/第23章/代碼23-8.txt2011-5-16 s and Settings/Administrator/桌面/代碼/第23章/代碼23-he = imread(he
11、stain.png); Image courtesy of Alan Partin, Johns Hopkins University, . cform=ab = double(lab_he(:,:,2:3);nrowss and Settings/Administrator/桌面/代碼/第23章/代碼23-he = imread(hestain.png); Image courtesy of Alan Partin, Johns Hopkins University, . cform=ab = double(lab_he(:,:,2:3);nrows=size(ab,1); ncols=si
12、ze(ab,2);ab = resh nColors=3;% 重復(fù)聚類3次,以避免局部最小pixel_labels=ols); title(image labeled by cluster index); segmented_images = cell(1,3);rgb_label = repmat(pixel_labels,1 1 3); for k = 1:nColorscolor = he; color(rgb_label=k)=0;segmented_imagesk=color; title(objects in cluster 1); title(objects in cluster
13、 2); title(objects in cluster 3);mean_cluster_value = mean(cluster_center,2); tmp, idx = sort(mean_cluster_value); blue_cluster_num = idx(1);L=blue_idx = find(pixel_labels = blue_cluster_num); L_blue = L(blue_idx);is_light_blue=nuclei_labels=nuclei_labels(blue_idx(is_light_blue=false) = nuclei_labels = repmat(nuclei_labels,1 1 3); blue_nuclei = he;s and Settings/Administrator/桌面/代碼/第23
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 簡單公司場地租用合同
- 貨車轉(zhuǎn)讓合同范本
- 消防維保合同書
- 購銷日化用品的合同
- 氨-柴油雙燃料發(fā)動機性能仿真及優(yōu)化研究
- 一種新型義齒修復(fù)材料JSAM的生物相容性評價
- 2025年人教版拓展型課程化學(xué)下冊階段測試試卷含答案
- 2025年浙教版九年級歷史下冊月考試卷含答案
- 2025年湘師大新版七年級歷史上冊月考試卷含答案
- 2025年人教新起點必修3物理上冊月考試卷
- 開工第一課安全培訓(xùn)內(nèi)容
- 印度與阿拉伯的數(shù)學(xué)
- 口腔科院感知識培訓(xùn)針刺傷
- 會陰切開傷口裂開的護理查房
- 《鋼鐵是怎樣煉成的》選擇題100題(含答案)
- 2024年國新國際投資有限公司招聘筆試參考題庫含答案解析
- 食堂餐廳服務(wù)方案投標方案(技術(shù)標)
- Creo-7.0基礎(chǔ)教程-配套課件
- 六年級人教版上冊數(shù)學(xué)計算題練習(xí)題(及答案)100解析
- 超聲科質(zhì)量控制制度及超聲科圖像質(zhì)量評價細則
- 初中物理滬粵版八年級下冊《第六章 力和機械》章節(jié)練習(xí)(含答案)
評論
0/150
提交評論