| 9 | 1/1 | 返回列表 |
| 查看: 2055 | 回復(fù): 8 | ||
zhang8826857鐵桿木蟲 (著名寫手)
|
[求助]
求助此圖的ostu方法分割圖像的matlab編程,急急急,金幣不是問題啊!
|
求助此圖的ostu方法分割圖像的matlab編程,急急急,金幣不是問題。 有效 回復(fù)重金答謝。盡量給出完整的程序呀![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() [ Last edited by zhang8826857 on 2012-6-8 at 15:18 ] |

至尊木蟲 (著名寫手)
weibo.com/138147022

木蟲 (正式寫手)
|
http://blog.csdn.net/daxiamit/article/details/6619075 http://hi.baidu.com/%BA%A3%B3%E6 ... 9cc7f1e7cd403e.html |
|
銀蟲 (正式寫手)
|
matlab自帶的graythresh用的就是ostu方法: help graythresh GRAYTHRESH Compute global image threshold using Otsu's method. LEVEL = GRAYTHRESH(I) computes a global threshold (LEVEL) that can be used to convert an intensity image to a binary image with IM2BW. LEVEL is a normalized intensity value that lies in the range [0, 1]. GRAYTHRESH uses Otsu's method, which chooses the threshold to minimize the intraclass variance of the thresholded black and white pixels. Class Support ------------- The input image I can be of class uint8, uint16, or double and it must be nonsparse. LEVEL is a double scalar. Example ------- I = imread('coins.png'); level = graythresh(I); BW = im2bw(I,level); imview(BW) See also im2bw. Reference page in Help browser doc graythresh |

銀蟲 (正式寫手)


鐵蟲 (初入文壇)
|
由于圖像背景較大,先做底帽變換,在用matlab的otsu函數(shù); clear;clc; a=imread('*.jpg'); a=rgb2gray(a); b=imbothat(a,strel('disk',10)); t=graythresh(b); c=im2bw(b,t); subplot(3,1,1);imshow(a,[]); subplot(3,1,2);imshow(b,[]); subplot(3,1,3);imshow(c,[]); |
鐵桿木蟲 (著名寫手)
|
| 9 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 280求調(diào)劑 +6 | 咕嚕曉曉 2026-03-18 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 290求調(diào)劑 +3 | p asserby. 2026-03-15 | 4/200 |
|
|
[考研] 一志愿蘇州大學(xué)材料工程(085601)專碩有科研經(jīng)歷三項(xiàng)國獎(jiǎng)兩個(gè)實(shí)用型專利一項(xiàng)省級立項(xiàng) +6 | 大火山小火山 2026-03-16 | 8/400 |
|
|
[考研] 085600材料與化工 +4 | 安全上岸! 2026-03-16 | 4/200 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|
|
[考研] [導(dǎo)師推薦]西南科技大學(xué)國防/材料導(dǎo)師推薦 +3 | 尖角小荷 2026-03-16 | 6/300 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 一志愿211 0703方向310分求調(diào)劑 +3 | 努力奮斗112 2026-03-15 | 3/150 |
|
|
[考研] 085600材料與化工 求調(diào)劑 +13 | enenenhui 2026-03-13 | 14/700 |
|
|
[考研] 288求調(diào)劑 +4 | 奇點(diǎn)0314 2026-03-14 | 4/200 |
|
|
[考研] 材料工程327求調(diào)劑 +3 | xiaohe12w 2026-03-11 | 3/150 |
|
|
[基金申請] 現(xiàn)在如何回避去年的某一個(gè)專家,不知道名字 +3 | zk200107 2026-03-12 | 6/300 |
|
|
[考研] 304求調(diào)劑 +6 | Mochaaaa 2026-03-12 | 7/350 |
|
|
[考研] 304求調(diào)劑 +7 | 7712b 2026-03-13 | 7/350 |
|
|
[考研] 333求調(diào)劑 +3 | 球球古力 2026-03-11 | 3/150 |
|
|
[考研] 材料與化工085600調(diào)劑求老師收留 +9 | jiaanl 2026-03-11 | 9/450 |
|
|
[考研] 材料工程調(diào)劑 +4 | 咪咪空空 2026-03-11 | 4/200 |
|
|
[考研] 310求調(diào)劑 +3 | 【上上簽】 2026-03-11 | 3/150 |
|
|
[考研] 307求調(diào)劑 +5 | 超級伊昂大王 2026-03-12 | 5/250 |
|
|
[考研] 290求調(diào)劑 +7 | ADT 2026-03-12 | 7/350 |
|