method

costs.BoxGIoU.__call__

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

Compute the generalised box-IoU cost matrix.

Parameters

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

Returns

CostExpression — ``(N, M)`` cost matrix; lower is better. Unlike box-IoU, non-overlapping pairs receive a finite positive cost rather than the constant ``1``.

Source: unitrack/costs/overlap.py:154