MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / dunion

Function dunion

yolo_detector/darknet_opt/src/box.c:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122dbox dunion(box a, box b)
123{
124 dbox du;
125
126 dbox di = dintersect(a, b);
127 du.dw = a.h - di.dw;
128 du.dh = a.w - di.dh;
129 du.dx = -di.dx;
130 du.dy = -di.dy;
131
132 return du;
133}
134
135
136void test_dunion()

Callers 2

test_dunionFunction · 0.85
diouFunction · 0.85

Calls 1

dintersectFunction · 0.85

Tested by 1

test_dunionFunction · 0.68