[問題] 移除skeleton的邊
今天小弟針對一個物體透過medial axis 擷取skeleton(骨架)
原物體: http://ppt.cc/bB-s (圖一)
執行 bwmorph(ima,'skel',Inf)後
所得骨架的結果是
http://ppt.cc/PXUq (圖二)
針對骨架小弟分別擷取branching points 和 endpoints
其圖如下:
http://ppt.cc/JWEY (圖三)
紅色為branching points
藍色為endpoints
http://ppt.cc/-Khq (圖四)
此圖為上圖右半邊部分沒有顯示出來的地方
這裡小弟有個問題是
小弟想要移除branching points和endpoints的邊
示意圖如下:
http://ppt.cc/yn6x (圖五) (根據圖四修改並示意)
http://ppt.cc/b6Fr (圖六) (根據圖三修改並示意)
請問板上大大們要如何達到圖五和圖六的結果呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.24.82