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

Function centered_drect

dlib/geometry/drectangle.h:389–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387 ) { return a.area(); }
388
389 inline drectangle centered_drect (
390 const dlib::vector<double,2>& p,
391 double width,
392 double height
393 )
394 {
395 width--;
396 height--;
397
398 return drectangle(p.x()-width/2, p.y()-height/2, p.x()+width/2, p.y()+height/2);
399 }
400
401 inline drectangle centered_drect (
402 const drectangle& rect,

Callers 9

set_rect_areaFunction · 0.85
set_aspect_ratioFunction · 0.85
operator()Method · 0.85
make_crop_planMethod · 0.85
chip_detailsMethod · 0.85
tensor_to_detsMethod · 0.85
tensor_to_detsMethod · 0.85
tensor_to_lossMethod · 0.85
mainFunction · 0.85

Calls 2

drectangleClass · 0.70
dcenterFunction · 0.70

Tested by

no test coverage detected