MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / bbNms

Function bbNms

eval/CIPO_evaluation/common/maskApi.c:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void bbNms( BB dt, siz n, uint *keep, double thr ) {
140 siz i, j; double u;
141 for( i=0; i<n; i++ ) keep[i]=1;
142 for( i=0; i<n; i++ ) if(keep[i]) {
143 for( j=i+1; j<n; j++ ) if(keep[j]) {
144 bbIou(dt+i*4,dt+j*4,1,1,0,&u);
145 if(u>thr) keep[j]=0;
146 }
147 }
148}
149
150void rleToBbox( const RLE *R, BB bb, siz n ) {
151 siz i; for( i=0; i<n; i++ ) {

Callers

nothing calls this directly

Calls 1

bbIouFunction · 0.85

Tested by

no test coverage detected