Expand description
Particle tracking: Crocker–Grier linking + centroid extraction.
Modules§
- crocker_
grier_ link - Crocker–Grier style 2D particle linking across frames (trackpy / IDL lineage).
- particle_
features - Particle features from binary / labelled masks — centroids for Crocker–Grier linking.
Structs§
- Crocker
Grier Linker - Bounded Crocker–Grier particle tracker.
- Crocker
Grier Params - Parameters for Crocker–Grier linking.
- Detection2
- Compact detection for the free-function linker (x, y, frame only).
- Linked
Particle - One linked particle observation (detection + assigned track id).
- Particle
Centroid - 2D particle feature used by
super::crocker_grier_link(). - Track
Link - Per-detection link result for
crocker_grier_link.
Constants§
- MAX_
FRAME_ DETS - Max detections considered per frame (association scratch).
- MAX_
PARTICLES_ PER_ FRAME - Maximum particles reported from a single frame (stack-friendly bound for callers).
- MAX_
PARTICLE_ TRACKS - Maximum simultaneous active tracks.
- NO_
TRACK_ ID - Sentinel: detection not assigned a track.
Functions§
- centroid_
from_ bbox - Centroid of a bounding box (integer mid-point) — convenience for box→particle bridges.
- centroids_
from_ binary - Extract centroids of connected components where pixel ≥
thresh(4-connected). - centroids_
from_ labels - Extract centroids from a pre-labelled
u8mask (label 0 = background). - crocker_
grier_ link - Free-function Crocker–Grier link over compact
Detection2rows. - link_
particles - One-shot convenience: link a full detection list with fresh linker state.