Skip to content

Commit

Permalink
detector/bbGt.m: minor fix to support old PASCAL 2007 format
Browse files Browse the repository at this point in the history
  • Loading branch information
pdollar committed Jul 11, 2014
1 parent ab5a31c commit c9a5e72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detector/bbGt.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
% bbGt>loadAll, bbGt>evalRes, bbGt>showRes, bbGt>compRoc, bbGt>cropRes,
% bbGt>compOas, bbGt>compOa
%
% Piotr's Image&Video Toolbox Version 3.20
% Piotr's Image&Video Toolbox Version NEW
% Copyright 2013 Piotr Dollar. [pdollar-at-caltech.edu]
% Please email me if you find bugs, or have suggestions or questions!
% Licensed under the Simplified BSD License [see external/bsd.txt]
Expand Down Expand Up @@ -240,6 +240,7 @@
error('bbLoad() requires the PASCAL VOC code.'); end
os=PASreadrecord(fName); os=os.objects;
n=length(os); objs=create(n);
if(~isfield(os,'occluded')), for i=1:n, os(i).occluded=0; end; end
for i=1:n
bb=os(i).bbox; bb(3)=bb(3)-bb(1); bb(4)=bb(4)-bb(2); objs(i).bb=bb;
objs(i).lbl=os(i).class; objs(i).ign=os(i).difficult;
Expand Down

0 comments on commit c9a5e72

Please sign in to comment.