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

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

댓글 수: 1

Jyotsna - the assignDetectionsToTracks seems to have been added in R2012b (see the Computer Vision System Toolbox Release Notes). Which version are you using?

댓글을 달려면 로그인하십시오.

답변 (1개)

assignDetectionsToTracks is available in the Computer Vision System Toolbox, in the R2012b release or later.

카테고리

도움말 센터File Exchange에서 Get Started with Computer Vision Toolbox에 대해 자세히 알아보기

질문:

2015년 4월 26일

답변:

2015년 7월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by