method

costs.Mahalanobis.__call__

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

Compute the Mahalanobis squared-distance cost matrix.

Parameters

NameTypeDescription
csTrackletsTracklet snapshot with ``N`` rows; must carry both :attr:`field` and :attr:`cov_field`.
dsDetectionsDetection record with ``M`` rows; must carry :attr:`field`.
ctxFrameContextFrame context (unused).

Returns

CostExpression — ``(N, M)`` cost matrix; lower is better.

Source: unitrack/costs/distance.py:243