method

assignment.Associate.__call__

def __call__(self, cs: Tracklets, ds: Detections, ctx: FrameContext, cost: CostExpression | None = None) -> MatchOutcome

Materialise ``cost`` and produce a :class:`~unitrack.data.MatchOutcome`.

Parameters

NameTypeDescription
csTrackletsCurrent tracklet snapshot.
dsDetectionsCurrent-frame detections.
ctxFrameContextFrame context (unused; kept for protocol parity).
cost = NoneCostExpressionCost 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