summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/toolbox/toolbox_basic/disp/draw_box2.m
blob: adec284fb3cfac7f1494ecc9afb196395418660c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function draw_box(center,w_h,j)


center_x = center(1);
center_y = center(2);

%plot(center_x,center_y,'r*');
%text(center_x,center_y,int2str(j));

l_x = center_x-w_h(1);
r_x = center_x+w_h(1);
u_y = center_y-w_h(2);
l_y = center_y+w_h(2);

plot([l_x,r_x,r_x,l_x,l_x],[u_y,u_y,l_y,l_y,u_y],'c');