delta.pipeline.ROI.get_tracking_inputs

ROI.get_tracking_inputs(frame: Optional[int] = None) Union[Tuple[ndarray, List[Tuple[CroppingBox, CroppingBox]]], Tuple[None, None]]

Compile tracking inputs for ROI

Parameters
frameint, optional

The frame to compile for. If None, the earliest frame not yet tracked is run. The default is None.

Returns
x4D array or None

Tracking input array. Dimensions are (previous_cells, cfg.target_size_track[1], cfg.target_size_track[0], 4). If no previous cells to track from (e.g. first frame or glitch), None is returned.

boxesList of tuples of 2 dicts or None

Crop and fill boxes to re-place outputs in the ROI

Raises
RuntimeError

Segmentation has not been completed up to frame yet.