acia.tracking#
Tracking module contains all tools to work with tracking formats
- acia.tracking.annotate_tracklet_times(tracklet_graph, timepoints)[source]#
Stamp real
start_time/end_timeonto every tracklet node in place.A tracklet node carries integer
start_frame/end_frame(seeacia.tracking.formats.read_ctc_tracklet_graph()); this maps those frame indices through per-frametimepointsto real timestamps, storing the float magnitudes (intimepoints’ own unit) asstart_time/end_timeand recording that unit intracklet_graph.graph["time_unit"]. Downstream (acia.viz.plot_tracklet_lineage()) then lays the lineage out on a real-time axis without the caller re-supplying any time.
- class acia.tracking.TrackingSource[source]#
Bases:
objectBase class for tracking information containing segmentation overlay and tracking graph (usually ids of overlay contours)
- class acia.tracking.TrackingSourceInMemory[source]#
Bases:
TrackingSourceTracking Source stored in memory
- merge(tr_source)[source]#
- Parameters:
tr_source (TrackingSource)
- class acia.tracking.SimpleTrackingSource[source]#
Bases:
TrackingSourceInMemoryTracking Source based on simple tracking json format
- acia.tracking.subsample_tracking(tracking, subsampling_factor)[source]#
Subsample the tracking source
- Parameters:
tracking (TrackingSource) – tracking source to subsample
subsampling_factor (int) – subsampling factor defining the step of frames. 1 means no subsampling. 2 means every second frame, …
- Raises:
ValueError – when wrong subsampling factor is chosen
- Returns:
TrackingSource – subsampled tracking source
- Return type:
- acia.tracking.ctc_track_graph(ov, tracklet_graph)[source]#
Computes the ctc track graph (every cell detection is a node) based on cell detections (overlay) and the tracklet graph (every tracklet is one node).
Hint: overlay labels and tracklet_graph node ids need to align.
- Parameters:
ov (Overlay) – _description_
tracklet_graph (nx.DiGraph) – _description_
- Returns:
_type_ – _description_