initializeBranch
Syntax
Description
initializes a new track branch in the branchID
= initializeBranch(tracker
,trackID
,branch
)tracker
. The branch is added to
the track specified by trackID
. The tracker
must
be updated at least once before initializing a track branch. If the track is initialized
successfully, the tracker assigns the output branchID
to the branch,
set the UpdateTime
of the branch equal to the last step time, and
synchronizes the data in the input branch
to the initialized branch.
A warning is issued if the tracker already maintains the maximum number of track
branches specified by the MaxNumTrackBranches
property of the tracker.
In this case, the branchID
is returned as zero, which indicates a
failure to initialize the branch.
Note
This syntax doesn't support using the trackingGSF
,
trackingPF
,
or trackingIMM
filter object as the internal tracking filter for the tracker. Use the second syntax for
these cases.
initializes a new track branch in the tracker using a specified tracking filter,
branchID
= initializeBranch(tracker
,trackID
,branch
,filter
)filter
.
Note
If the tracking filter used in the tracker is trackingGSF
,
trackingPF
,
or trackingIMM
,
you must use this syntax instead of the first syntax.
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2020a