Skip to main content

Module tracking

Module tracking 

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

CrockerGrierLinker
Bounded Crocker–Grier particle tracker.
CrockerGrierParams
Parameters for Crocker–Grier linking.
Detection2
Compact detection for the free-function linker (x, y, frame only).
LinkedParticle
One linked particle observation (detection + assigned track id).
ParticleCentroid
2D particle feature used by super::crocker_grier_link().
TrackLink
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 u8 mask (label 0 = background).
crocker_grier_link
Free-function Crocker–Grier link over compact Detection2 rows.
link_particles
One-shot convenience: link a full detection list with fresh linker state.