Main Content

setTrackFilterProperties

R2026b

Set track filter properties

Description

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.

example

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.0000         0         0
         0    2.0000         0
         0         0    2.0000

Show the process noise.

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

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.0000         0         0
         0    2.0000         0
         0         0    2.0000

Show the process noise.

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

Input Arguments

collapse all

Target tracker, specified as a trackerGNN, trackerJPDA, or trackerTOMHT 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

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.

Version History

Introduced in R2018b