20070313-Connected component labeling – Part 2

原文:http://blogs.mathworks.com/steve/2007/03/13/connected-component-labeling-part-2/


In this series I'm discussing different ways to compute the connected components of a binary image. Before I get into specific algorithms, though, I need to touch briefly on the notion of connectivity.

conn4 = [0 1 0; 1 1 1; 0 1 0]
conn4 =

     0     1     0
     1     1     1
     0     1     0
conn8 = [1 1 1; 1 1 1; 1 1 1]
conn8 =

     1     1     1
     1     1     1
     1     1     1

發佈了119 篇原創文章 · 獲贊 16 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章