method

costs.Reduce.__call__

def __call__(self, cs: Tracklets, ds: Detections, ctx: FrameContext) -> CostExpression

Run every child and combine their cost matrices.

Parameters

NameTypeDescription
csTrackletsForwarded to each child unchanged.
dsTrackletsForwarded to each child unchanged.
ctxTrackletsForwarded to each child unchanged.

Returns

CostExpression — ``(N, M)`` reduced cost matrix. Per-child gate masks are AND-combined pointwise; biases sum additively.

Raises

  • ValueError — If :attr:`method` is not a recognised :class:`Reduction`.

Source: unitrack/costs/combinators.py:104