Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
122
dbox 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
136
void test_dunion()
Callers
2
test_dunion
Function · 0.85
diou
Function · 0.85
Calls
1
dintersect
Function · 0.85
Tested by
1
test_dunion
Function · 0.68