updateTracks
Update multi-object tracker with new detections
Syntax
Description
creates, updates, and deletes tracks in the confirmedTracks
= updateTracks(tracker
,detections
,time
)multiObjectTracker
System object™, tracker
. Updates are based on the specified list
of detections
, and all tracks are updated to the specified
time
. Each element in the returned
confirmedTracks
corresponds to a single track.
[
also returns confirmedTracks
,tentativeTracks
] = updateTracks(tracker
,detections
,time
)tentativeTracks
containing details about the
tentative tracks.
[
also returns confirmedTracks
,tentativeTracks
,allTracks
] = updateTracks(tracker
,detections
,time
)allTracks
containing details about all confirmed
and tentative tracks. The tracks are returned in the order by which the tracker
internally maintains them. You can use this output to help you calculate the cost
matrix, an optional input argument.
[___] = updateTracks(
specifies a cost matrix, returning any of the outputs from preceding
syntaxes.tracker
,detections
,time
,costMatrix
)
To specify a cost matrix, set the HasCostMatrixInput
property
of tracker
to true
.
[___] = updateTracks(___,
also specifies a list of expected detectable tracks given by
detectableTrackIDs
)detectableTrackIDs
. This argument can be used with any of
the previous input syntaxes.
To enable this syntax, set the HasDetectableTrackIDsInput
property to true
.
Examples
Input Arguments
Output Arguments
Algorithms
When you pass detections into updateTracks
, the function:
Attempts to assign the input detections to existing tracks, based on the
AssignmentThreshold
property of the multi-object tracker.Creates new tracks from unassigned detections.
Updates already assigned tracks and possibly confirms them, based on the
ConfirmationThreshold
property of the tracker.Deletes tracks that have no assigned detections, based on the
DeletionThreshold
property of the tracker.
Version History
Introduced in R2017a