states.SoftReplace.__call__
def __call__(self, cs: Tracklets, ds: Detections, match: MatchOutcome, ctx: FrameContext) -> TrackletsBlend each tracklet field as a weighted sum of detection values.
Parameters
| Name | Type | Description |
|---|---|---|
| cs | Tracklets | Current tracklet snapshot. |
| ds | Detections | Current-frame detections. |
| match | MatchOutcome | Matched pairs and (optionally) attached transport plan. |
| ctx | FrameContext | Frame context. |
Returns
Tracklets — New snapshot with the field updated.
Raises
- RuntimeError — If no transport plan is available — neither passed at construction nor attached to ``match``.
Source: unitrack/states/soft.py:49