deleteTrack
Description
Examples
Delete track
Create a track using detections in a GNN tracker.
tracker = trackerGNN; detection1 = objectDetection(0,[1;1;1]); detection2 = objectDetection(1,[1.1;1.2;1.1]); tracker(detection1,0); tracker(detection2,1)
ans = objectTrack with properties: TrackID: 1 BranchID: 0 SourceIndex: 0 UpdateTime: 1 Age: 2 State: [6x1 double] StateCovariance: [6x6 double] StateParameters: [1x1 struct] ObjectClassID: 0 ObjectClassProbabilities: 1 TrackLogic: 'History' TrackLogicState: [1 1 0 0 0] IsConfirmed: 1 IsCoasted: 0 IsSelfReported: 1 ObjectAttributes: [1x1 struct]
Delete the first track.
deleted1 = deleteTrack(tracker,1)
deleted1 = logical
1
Uncomment the following to delete a nonexistent track. A warning will be issued.
% deleted2 = deleteTrack(tracker,2)
Input Arguments
obj
— Tracker or fuser object
trackerTOMHT
object | trackerJPDA
object | trackerGNN
object | trackerPHD
object | trackFuser
object
Tracker or fuser object, specified as a trackerTOMHT
,
trackerJPDA
, trackerGNN
,
trackerPHD
,
or trackFuser
object.
trackID
— Track identifier
positive integer
Track identifier, specified as a positive integer.
Example: 21
Output Arguments
deleted
— Indicate if track was successfully deleted
1
| 0
Indicate if the track was successfully deleted or not, returned as
1
or 0
. If the track specified by the
trackID
input existed and was successfully deleted, it returns as
1
. If the track did not exist, a warning is issued and it returns
as 0
.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced in R2020a
See Also
trackerTOMHT
| trackerJPDA
| trackerGNN
| trackerPHD
| trackFuser
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)