Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7c820bac52
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.344 kb
function bbox2=flip_box(bbox,sizeI)
%Flip a matrix of boxes using a L-R reflection
%Each row is a new BB with the first four columns as the BB location
if size(bbox,1) == 0
bbox2 = bbox;
return;
end
W = bbox(:,3) - bbox(:,1) + 1;
H = bbox(:,4) - bbox(:,2) + 1;
bbox2 = bbox;
bbox2(:,3) = sizeI(2)-bbox2(:,1);
bbox2(:,1) = bbox2(:,3)-W+1;
Jump to Line
Something went wrong with that request. Please try again.