method

costs.MaskIoU.__call__

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

Compute the mask-IoU cost matrix.

Parameters

NameTypeDescription
csTrackletsTracklet snapshot with ``N`` rows.
dsDetectionsDetection record with ``M`` rows.
ctxFrameContextFrame context (unused).

Returns

CostExpression — ``(N, M)`` cost matrix bounded in ``[0, 1]``; lower is better.

Source: unitrack/costs/overlap.py:37