Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7c820bac52
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (25 sloc) 0.833 kB
function top = esvm_nms_within_exemplars(boxes,os_thresh)
% Perform NMS within each exemplar, where the 6th field of each
% detection indicates the exemplar source id
% [boxes]: the input bounding boxes
% [os_thresh]: the overlap_threshold given to esvm_nms
%
% Copyright (C) 2011-12 by Tomasz Malisiewicz
% All rights reserved.
%
% This file is part of the Exemplar-SVM library and is made
% available under the terms of the MIT license (see COPYING file).
% Project homepage: https://github.com/quantombone/exemplarsvm
if length(boxes) == 0
top = boxes;
return;
end
uex = unique(boxes(:,6));
top = cell(length(uex),1);
for i = 1:length(uex)
top{i} = esvm_nms(boxes(boxes(:,6)==uex(i),:),os_thresh);
end
top = cat(1,top{:});
%Sort the detections within the new scores
[aa,bb] = sort(top(:,end),'descend');
top = top(bb,:);
Jump to Line
Something went wrong with that request. Please try again.