MATLAB 帮助中心
Delete existing track
Since R2021a
deleted = deleteTrack(tracker,trackID)
deleted = deleteTrack(tracker,trackID) deletes the track specified by trackID in the tracker.
deleted
tracker
trackID
example
collapse all
Tracker
Create a track using detections in a radarTracker.
radarTracker
tracker = radarTracker
tracker = radarTracker with properties: TrackerIndex: 0 FilterInitializationFcn: 'initcvekf' AssignmentThreshold: [30 Inf] MaxNumTracks: 100 MaxNumDetections: Inf MaxNumSensors: 20 OOSMHandling: 'Terminate' ConfirmationThreshold: [2 3] DeletionThreshold: [5 5] HasCostMatrixInput: false HasDetectableTrackIDsInput: false StateParameters: [1×1 struct] NumTracks: 0 NumConfirmedTracks: 0
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: [6×1 double] StateCovariance: [6×6 double] StateParameters: [1×1 struct] ObjectClassID: 0 ObjectClassProbabilities: 1 TrackLogic: 'History' TrackLogicState: [1 1 0 0 0] IsConfirmed: 1 IsCoasted: 0 IsSelfReported: 1 ObjectAttributes: [1×1 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)
Radar tracker, specified as a radarTracker object.
Track identifier, specified as a positive integer.
Example: 21
21
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.
expand all
Introduced in R2021a
radarTracker | initializeTrack
initializeTrack
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处