costs.Mahalanobis.__call__
def __call__(self, cs: Tracklets, ds: Detections, ctx: FrameContext) -> CostExpressionCompute the Mahalanobis squared-distance cost matrix.
Parameters
| Name | Type | Description |
|---|---|---|
| cs | Tracklets | Tracklet snapshot with ``N`` rows; must carry both :attr:`field` and :attr:`cov_field`. |
| ds | Detections | Detection record with ``M`` rows; must carry :attr:`field`. |
| ctx | FrameContext | Frame context (unused). |
Returns
CostExpression — ``(N, M)`` cost matrix; lower is better.
Source: unitrack/costs/distance.py:243