MCPcopy Create free account
hub / github.com/davisking/dlib / draw_rectangle

Function draw_rectangle

dlib/image_transforms/draw.h:195–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 typename pixel_type
194 >
195 void draw_rectangle (
196 image_type& c,
197 const rectangle& rect,
198 const pixel_type& val
199 )
200 {
201 draw_line(c, rect.tl_corner(), rect.tr_corner(), val);
202 draw_line(c, rect.bl_corner(), rect.br_corner(), val);
203 draw_line(c, rect.tl_corner(), rect.bl_corner(), val);
204 draw_line(c, rect.tr_corner(), rect.br_corner(), val);
205 }
206
207// ----------------------------------------------------------------------------------------
208

Callers 1

mainFunction · 0.50

Calls 7

draw_lineFunction · 0.70
shrink_rectFunction · 0.50
grow_rectFunction · 0.50
tl_cornerMethod · 0.45
tr_cornerMethod · 0.45
bl_cornerMethod · 0.45
br_cornerMethod · 0.45

Tested by

no test coverage detected