You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
317 B
Matlab

function plot_bounding_box(box,colour)
if nargin<2 || isempty(colour)
colour='y';
end
hold on
numBoxes=size(box,1);
for i=1:numBoxes
plot([box(i,1),box(i,1)+box(i,3),box(i,1)+box(i,3),box(i,1),box(i,1)],[box(i,2),box(i,2),box(i,2)+box(i,4),box(i,2)+box(i,4),box(i,2)],colour,'LineWidth',2);
end
colormap('gray')