setTrackFilterProperties

Set track filter properties

Description

example

setTrackFilterProperties(tracker,branchID,'Name',Value) sets the values of tracking filter properties of the tracker, tracker, for the branch specified by, branchID. Use valid Name-Value pairs to set properties for the branch. You can specify as many Name-Value pairs as you wish. Property names must match the names of public filter properties. This syntax applies when you create the tracker using trackerTOMHT.

example

setTrackFilterProperties(tracker,trackID,'Name',Value) sets the values of tracking filter properties of the tracker, tracker, for the track, trackID. Use Name-Value pairs to set properties for the track. You can specify as many Name-Value pairs as you wish. Property names must match the names of public filter properties. This syntax applies when you create the tracker using trackerGNN or trackerJPDA.

Examples

collapse all

Create a tracker using trackerTOMHT. Assign values to the MeasurementNoise and ProcessNoise properties and verify the assignment.

tracker = trackerTOMHT;
detection = objectDetection(0,[0;0;0]);
tracker(detection,0);
branches = getBranches(tracker);
branchID = branches(1).BranchID;
setTrackFilterProperties(tracker,branchID,'MeasurementNoise',2,'ProcessNoise',5);
values = getTrackFilterProperties(tracker,branchID,'MeasurementNoise','ProcessNoise');

Show the measurement noise.

disp(values{1})
     2     0     0
     0     2     0
     0     0     2

Show the process noise.

disp(values{2})
     5     0     0
     0     5     0
     0     0     5

Create a tracker using trackerGNN. Assign values to the MeasurementNoise and ProcessNoise properties and verify the assignment.

tracker = trackerGNN;
detection = objectDetection(0,[0;0;0]);
[~, tracks] = tracker(detection,0);
setTrackFilterProperties(tracker,1,'MeasurementNoise',2,'ProcessNoise',5);
values = getTrackFilterProperties(tracker,1,'MeasurementNoise','ProcessNoise');

Show the measurement noise.

disp(values{1})
     2     0     0
     0     2     0
     0     0     2

Show the process noise.

disp(values{2})
     5     0     0
     0     5     0
     0     0     5

Input Arguments

collapse all

Target tracker, specified as a trackerTOMHT or trackerGNN object.

Branch identifier, specified as a positive integer. The identifier must be a valid BranchID reported in the list of branches returned by the getBranches object function.

Example: 21

Data Types: uint32

Track identifier, specified as a positive integer. trackID must be a valid track identifier as reported from the previous track update.

Example: 21

Data Types: uint32

Introduced in R2018b