Skip to main content

Module segmentation

Module segmentation 

Source
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§

ComponentStats
Bounding box and statistics for a connected component.
LabelResult
Result of connected component labeling.
UnionFind
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.