| 3 | 1/1 | 返回列表 |
| 查看: 912 | 回復(fù): 2 | |||||
junmajifei銅蟲 (正式寫手)
|
[求助]
MATLAB上菱形數(shù)組的創(chuàng)建 已有1人參與
|
|
MATLAB上有一個(gè)函數(shù)strel,可以創(chuàng)建形態(tài)結(jié)構(gòu)元素。SE = strel('diamond', R)可以得到菱形數(shù)組, >> SE = strel('diamond', 3) SE = Flat STREL object containing 25 neighbors. Decomposition: 3 STREL objects containing a total of 13 neighbors Neighborhood: 0 0 0 1 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 1 0 0 0 現(xiàn)在的問題是這個(gè)數(shù)組是形態(tài)數(shù)組,Class為strel,不便于數(shù)值計(jì)算,請問能否將這一數(shù)組轉(zhuǎn)化為數(shù)值數(shù)組?或者存在其他類似的函數(shù),能夠產(chǎn)生菱形數(shù)組? |

榮譽(yù)版主 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +4 |
|
SE = strel('diamond', 3) seq = getsequence(SE) imdilate(1,seq,'full') ans = -Inf -Inf -Inf 1 -Inf -Inf -Inf -Inf -Inf 1 1 1 -Inf -Inf -Inf 1 1 1 1 1 -Inf 1 1 1 1 1 1 1 -Inf 1 1 1 1 1 -Inf -Inf -Inf 1 1 1 -Inf -Inf -Inf -Inf -Inf 1 -Inf -Inf -Inf |

銅蟲 (正式寫手)
|
您好,感謝您的回答,您的回答解決我的基本問題,我也看了相關(guān)的網(wǎng)頁,http://cn.mathworks.com/help/images/ref/getsequence.html, 但是沒看明白,Decomposition: 3 STREL objects containing a total of 13 neighbors 這句話我不知道是什么意思? 另外,函數(shù)getsequence的作用是Sequence of decomposed structuring elements,不太明白這句話的含義? 謝謝! |

| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 086003食品工程求調(diào)劑 +3 | 淼淼111 2026-03-24 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 求調(diào)劑 +4 | 研研,接電話 2026-03-24 | 4/200 |
|
|
[考研] 361求調(diào)劑 +3 | Glack 2026-03-22 | 3/150 |
|
|
[考研] 306求調(diào)劑 +9 | chuanzhu川燭 2026-03-18 | 9/450 |
|
|
[考研] 333求調(diào)劑 +6 | 87639 2026-03-21 | 10/500 |
|
|
[考研] 307求調(diào)劑 +3 | 余意卿 2026-03-21 | 3/150 |
|
|
[考研] 求調(diào)劑一志愿海大,0703化學(xué)學(xué)碩304分,有大創(chuàng)項(xiàng)目,四級已過 +6 | 幸運(yùn)哩哩 2026-03-22 | 10/500 |
|
|
[考研] 306求調(diào)劑 +5 | 來好運(yùn)來來來 2026-03-22 | 5/250 |
|
|
[考研] 一志愿中南化學(xué)(0703)總分337求調(diào)劑 +9 | niko- 2026-03-19 | 10/500 |
|
|
[考研] 一志愿 西北大學(xué) ,070300化學(xué)學(xué)碩,總分287,雙非一本,求調(diào)劑。 +3 | 晨昏線與星海 2026-03-20 | 3/150 |
|
|
[考研] 318求調(diào)劑 +4 | plum李子 2026-03-21 | 7/350 |
|
|
[考研] 286分人工智能專業(yè)請求調(diào)劑愿意跨考! +4 | lemonzzn 2026-03-17 | 8/400 |
|
|
[考研] 一志愿南大,0703化學(xué),分?jǐn)?shù)336,求調(diào)劑 +3 | 收到VS 2026-03-21 | 3/150 |
|
|
[考研] 0703化學(xué)297求調(diào)劑 +3 | Daisy☆ 2026-03-20 | 3/150 |
|
|
[考研] 材料學(xué)學(xué)碩080502 337求調(diào)劑-一志愿華中科技大學(xué) +4 | 順順順mr 2026-03-18 | 5/250 |
|
|
[考研] 化學(xué)求調(diào)劑 +4 | 臨澤境llllll 2026-03-17 | 5/250 |
|
|
[考研] 一志愿華中科技大學(xué),080502,354分求調(diào)劑 +5 | 守候夕陽CF 2026-03-18 | 5/250 |
|
|
[考研] 295材料求調(diào)劑,一志愿武漢理工085601專碩 +5 | Charlieyq 2026-03-19 | 5/250 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學(xué)071005 +5 | ioodiiij 2026-03-17 | 5/250 |
|
|
[考研] 材料,紡織,生物(0856、0710),化學(xué)招生啦 +3 | Eember. 2026-03-17 | 9/450 |
|