deleteTrack
Description
Examples
Create a track using detections in a 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)
Input Arguments
Radar tracker, specified as a radarTracker
object.
Track identifier, specified as a positive integer.
Example: 21
Output Arguments
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 R2021a
See Also
MATLAB Command
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 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)