costs.Reduce.__call__
def __call__(self, cs: Tracklets, ds: Detections, ctx: FrameContext) -> CostExpressionRun every child and combine their cost matrices.
Parameters
| Name | Type | Description |
|---|---|---|
| cs | Tracklets | Forwarded to each child unchanged. |
| ds | Tracklets | Forwarded to each child unchanged. |
| ctx | Tracklets | Forwarded 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