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

Function centered_rects

dlib/geometry/rectangle.h:578–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576// ----------------------------------------------------------------------------------------
577
578 inline std::vector<rectangle> centered_rects (
579 const std::vector<point>& pts,
580 unsigned long width,
581 unsigned long height
582 )
583 {
584 std::vector<rectangle> tmp;
585 tmp.reserve(pts.size());
586 for (auto& p : pts)
587 tmp.emplace_back(centered_rect(p, width, height));
588 return tmp;
589 }
590
591// ----------------------------------------------------------------------------------------
592

Callers 1

bind_rectanglesFunction · 0.85

Calls 3

centered_rectFunction · 0.85
reserveMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected