Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Assign detections to tracks for multiobject tracking

```
[assignments,unassignedTracks,unassignedDetections]
= assignDetectionsToTracks( costMatrix,costOfNonAssignment)
```

```
[assignments,unassignedTracks,unassignedDetections]
= assignDetectionsToTracks(costMatrix, unassignedTrackCost,unassignedDetectionCost)
```

`[`

assigns
detections to tracks in the context of multiple object tracking using
the James Munkres's variant of the Hungarian assignment algorithm.
It also determines which tracks are missing and which detections should
begin new tracks. It returns the indices of assigned and unassigned
tracks, and unassigned detections. The `assignments`

,`unassignedTracks`

,`unassignedDetections`

]
= assignDetectionsToTracks( `costMatrix`

,`costOfNonAssignment`

)`costMatrix`

must
be an * M*-by-

`costOfNonAssignment`

scalar input represents
the cost of a track or a detection remaining unassigned.`[`

specifies
the cost of unassigned tracks and detections separately. The `assignments`

,`unassignedTracks`

,`unassignedDetections`

]
= assignDetectionsToTracks(`costMatrix`

, `unassignedTrackCost`

,`unassignedDetectionCost`

)`unassignedTrackCost`

must
be a scalar value, or an * M*-element vector, where

`unassignedDetectionCost`

must
be a scalar value or an [1] Miller, Matt L., Harold S. Stone, and Ingemar J. Cox,
"Optimizing Murty's Ranked Assignment Method," *IEEE
Transactions on Aerospace and Electronic Systems*, 33(3),
1997.

[2] Munkres, James, "Algorithms for Assignment and
Transportation Problems," *Journal of the Society
for Industrial and Applied Mathematics*, Volume 5, Number
1, March, 1957.

Was this topic helpful?