I am getting this error "Undefined function 'assignDet​ectionsToT​racks' for input arguments of type 'double'." . So is the function not there in CV toolbox 5.0? If so what is a similar function available that I can use

1 view (last 30 days)
I'm trying to use this function from multiple objects tracking code in MATLAB, but I'm having trouble since it depends on assignDetectionsToTracks function which I cannot find in my toolbox
function [assignments, unassignedTracks, unassignedDetections] = ... detectionToTrackAssignment()
nTracks = length(tracks);
nDetections = size(centroids, 1);
% Compute the cost of assigning each detection to each track.
cost = zeros(nTracks, nDetections);
for i = 1:nTracks
cost(i, :) = distance(tracks(i).kalmanFilter, centroids);
end
% Solve the assignment problem.
costOfNonAssignment = 20;
[assignments, unassignedTracks, unassignedDetections] = ...
assignDetectionsToTracks(cost, costOfNonAssignment);
end

Answers (1)

Dima Lisin
Dima Lisin on 21 Jul 2015
assignDetectionsToTracks is available in the Computer Vision System Toolbox, in the R2012b release or later.

Categories

Find more on Computer Vision Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!