Skip to main content

Module crocker_grier_link

Module crocker_grier_link 

Source
Expand description

Crocker–Grier style 2D particle linking across frames (trackpy / IDL lineage).

Links detections (x, y, frame) with:

  • max distance — Euclidean gate between consecutive frames
  • assignment — greedy nearest-neighbour, or LAP-lite (cost-sorted edges)
  • memory / miss gap — a track may skip up to memory frames without a hit
  • fixed max tracks — overflow births rejected deterministically (track_id = 0)

Pure Rust; fixed slot table + stack scratch on the link path. Reference: Crocker & Grier, J. Colloid Interface Sci. (1996); trackpy link.

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).
TrackLink
Per-detection link result for crocker_grier_link.

Constants§

MAX_FRAME_DETS
Max detections considered per frame (association scratch).
MAX_PARTICLE_TRACKS
Maximum simultaneous active tracks.
NO_TRACK_ID
Sentinel: detection not assigned a track.

Functions§

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.