Initialize new track branch
initializes a new track branch in the tracker. 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
= initializeTrack(tracker
,branch
)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
= initializeTrack(tracker
,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.