| 5 | 1/1 | 返回列表 |
| 查看: 917 | 回復(fù): 2 | ||||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | ||||
junmajifei銅蟲 (正式寫手)
|
[求助]
MATLAB上菱形數(shù)組的創(chuàng)建 已有1人參與
|
|||
|
MATLAB上有一個函數(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)在的問題是這個數(shù)組是形態(tài)數(shù)組,Class為strel,不便于數(shù)值計(jì)算,請問能否將這一數(shù)組轉(zhuǎn)化為數(shù)值數(shù)組?或者存在其他類似的函數(shù),能夠產(chǎn)生菱形數(shù)組? |

銅蟲 (正式寫手)
|
您好,感謝您的回答,您的回答解決我的基本問題,我也看了相關(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,不太明白這句話的含義? 謝謝! |

榮譽(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 |

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 300求調(diào)劑,材料科學(xué)英一數(shù)二 +6 | leaflight 2026-03-24 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 生物學(xué)學(xué)碩,一志愿湖南大學(xué),初試成績338 +6 | YYYYYNNNNN 2026-03-26 | 7/350 |
|
|
[考研] 求調(diào)劑一志愿海大,0703化學(xué)學(xué)碩304分,有大創(chuàng)項(xiàng)目,四級已過 +7 | 幸運(yùn)哩哩 2026-03-22 | 11/550 |
|
|
[考研] 321求調(diào)劑 +6 | 璞玉~~ 2026-03-25 | 7/350 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動285求調(diào)劑 +3 | AZMK 2026-03-27 | 5/250 |
|
|
[考研] 化學(xué)0703 調(diào)劑 306分 一志愿211 +4 | 26要上岸 2026-03-28 | 4/200 |
|
|
[考研] 0856求調(diào)劑 +11 | zhn03 2026-03-25 | 12/600 |
|
|
[考研] 292求調(diào)劑 +14 | 鵝鵝鵝額額額額?/a> 2026-03-25 | 15/750 |
|
|
[考研] 材料求調(diào)劑 一志愿哈工大總分298分,前三科223分 +5 | dongfang59 2026-03-27 | 5/250 |
|
|
[考研] 085701環(huán)境工程求調(diào)劑 +9 | 多久上課 2026-03-27 | 9/450 |
|
|
[考研] 求調(diào)劑 +8 | 張zz111 2026-03-27 | 9/450 |
|
|
[考研] 329求調(diào)劑 +7 | 鈕恩雪 2026-03-25 | 7/350 |
|
|
[考研] 325求調(diào)劑 +3 | Aoyijiang 2026-03-23 | 3/150 |
|
|
[考研] 281求調(diào)劑 +3 | 亞克西good 2026-03-26 | 5/250 |
|
|
[考研] 生物技術(shù)與工程 +3 | 1294608413 2026-03-25 | 4/200 |
|
|
[考研] 求b區(qū)院校調(diào)劑 +4 | 周56 2026-03-24 | 5/250 |
|
|
[考研] 生物學(xué)學(xué)碩求調(diào)劑 +7 | 小羊睡著了? 2026-03-23 | 10/500 |
|
|
[考研] 300分,材料,求調(diào)劑,英一數(shù)二 +5 | 超贊的 2026-03-24 | 5/250 |
|
|
[考研] 一志愿河北工業(yè)大學(xué)0817化工278分求調(diào)劑 +7 | jhybd 2026-03-23 | 12/600 |
|
|
[考研] 一志愿山東大學(xué)藥學(xué)學(xué)碩求調(diào)劑 +3 | 開開心心沒煩惱 2026-03-23 | 4/200 |
|