Expand description
Connected components labeling using Union-Find. Connected components labeling (CCL) using Union-Find.
This module implements the second stage of the pipeline, identifying and grouping dark pixels that could potentially form fiducial markers.
It provides:
- Standard CCL: Efficient binary component labeling.
- Threshold-Model CCL: Advanced connectivity based on local adaptive thresholds.
Structs§
- Component
Stats - Bounding box and statistics for a connected component.
- Label
Result - Result of connected component labeling.
- Union
Find - A disjoint-set forest (Union-Find) with path compression and rank optimization.
Functions§
- compute_
moment_ shape - Compute shape descriptors from a component’s spatial moments.
- label_
components - Label connected components in a binary image.
- label_
components_ with_ stats - Label components and compute bounding box stats for each.