I am getting this error "Undefined function 'assignDetectionsToTracks' 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 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
Geoff Hayes
2015 年 4 月 26 日
編集済み: Geoff Hayes
2015 年 4 月 26 日
Jyotsna - the assignDetectionsToTracks seems to have been added in R2012b (see the Computer Vision System Toolbox Release Notes). Which version are you using?
回答 (1 件)
Dima Lisin
2015 年 7 月 21 日
assignDetectionsToTracks is available in the Computer Vision System Toolbox, in the R2012b release or later.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!