Overview
Connected Component Labeling scans pixels and groups neighboring foreground pixels into distinct labeled components.
Assigns labels to contiguous foreground regions in a binary or segmented image.
Compact metadata for implementation and discovery.
Connected Component Labeling scans pixels and groups neighboring foreground pixels into distinct labeled components.
Quick facts
Runtime and memory behavior at a glance.
Best
O(pixels)
Average
O(pixels)
Worst
O(pixels)
Space
O(pixels)
Show separate foreground blobs receiving different colors or numeric labels.
Four-connectivity and eight-connectivity can produce different components.
What each reference supports for this entry.
Image-processing textbook support for connected-component labeling in binary images.
Reference for sequential connected-component labeling and equivalence handling.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Connected-component labeling can merge provisional labels efficiently with union-find.