assignment.Associate.__call__
def __call__(self, cs: Tracklets, ds: Detections, ctx: FrameContext, cost: CostExpression | None = None) -> MatchOutcomeMaterialise ``cost`` and produce a :class:`~unitrack.data.MatchOutcome`.
Parameters
| Name | Type | Description |
|---|---|---|
| cs | Tracklets | Current tracklet snapshot. |
| ds | Detections | Current-frame detections. |
| ctx | FrameContext | Frame context (unused; kept for protocol parity). |
| cost = None | CostExpression | Cost expression to materialise. Required; the ``None`` default exists only so this method matches the broader associator call signature. |
Returns
MatchOutcome — Matched pairs, residual indices, per-match costs, and (for soft assignment) the transport plan.
Raises
- ValueError — If ``cost`` is ``None``.
Source: unitrack/assignment/associate.py:42