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

Function dcenter

dlib/geometry/rectangle.h:411–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409// ----------------------------------------------------------------------------------------
410
411 inline dlib::vector<double,2> dcenter (
412 const dlib::rectangle& rect
413 )
414 {
415 dlib::vector<double,2> temp(rect.left() + rect.right(),
416 rect.top() + rect.bottom());
417
418 return temp/2.0;
419 }
420
421// ----------------------------------------------------------------------------------------
422

Callers 5

operator()Method · 0.70
test_rect_to_drectFunction · 0.50
tiled_pyramid_to_imageFunction · 0.50
rotate_imageFunction · 0.50

Calls 4

leftMethod · 0.45
rightMethod · 0.45
topMethod · 0.45
bottomMethod · 0.45

Tested by 1

test_rect_to_drectFunction · 0.40