Labeling Connected Regions in a Binary Image
Connected-component labeling assigns a shared label to every selected cell reachable under the chosen neighborhood rule.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace two regions
A row of selected cells at columns zero and one can share a label. A cell at column three stays separate when column two is unselected and there is no alternate path. Neighborhood choice determines those connections.
Verify assigned identities
Exact label numbers can depend on scan order. Check which cells share a label and how many components exist. See set partitions.[1][2]