Skip to content

Commit

Permalink
detector/bbGt.m: evalRes(): optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
pdollar committed May 4, 2014
1 parent c400f58 commit 971fae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions detector/bbGt.m
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@
gt=gt0; gt(:,5)=-gt(:,5); dt=dt0; dt=[dt zeros(nd,1)];

% Attempt to match each (sorted) dt to each (sorted) gt
oa = compOas( dt(:,1:4), gt(:,1:4), gt(:,5)==-1 );
for d=1:nd
bstOa=thr; bstg=0; bstm=0; % info about best match so far
for g=1:ng
Expand All @@ -625,13 +626,12 @@
% if dt already matched, and on ignore gt, nothing more to do
if( bstm~=0 && m==-1 ), break; end
% compute overlap area, continue to next gt unless better match made
oa=compOa(dt(d,1:4),gt(g,1:4),m==-1); if(oa<bstOa), continue; end
if(oa(d,g)<bstOa), continue; end
% match successful and best so far, store appropriately
bstOa=oa; bstg=g; if(m==0), bstm=1; else bstm=-1; end
bstOa=oa(d,g); bstg=g; if(m==0), bstm=1; else bstm=-1; end
end; g=bstg; m=bstm;
% store type of match for both dt and gt
if(m==-1), assert(mul || gt(g,5)==m); dt(d,6)=m; end
if(m==1), assert(gt(g,5)==0); gt(g,5)=m; dt(d,6)=m; end
if(m==-1), dt(d,6)=m; elseif(m==1), gt(g,5)=m; dt(d,6)=m; end
end

end
Expand Down
1 change: 1 addition & 0 deletions external/history.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Version NEW
-fevalDistr.m: tweaks to HPC case
-bbGt.m: minor fix (thanks David Hall)
-bbGt>evalRes: optimized
-minor: gradientMex.cpp

Version 3.25 (15-Dec-2013)
Expand Down

0 comments on commit 971fae3

Please sign in to comment.