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

Function rleFrBbox

eval/CIPO_evaluation/common/maskApi.c:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void rleFrBbox( RLE *R, const BB bb, siz h, siz w, siz n ) {
167 siz i; for( i=0; i<n; i++ ) {
168 double xs=bb[4*i+0], xe=xs+bb[4*i+2];
169 double ys=bb[4*i+1], ye=ys+bb[4*i+3];
170 double xy[8] = {xs,ys,xs,ye,xe,ye,xe,ys};
171 rleFrPoly( R+i, xy, 4, h, w );
172 }
173}
174
175int uintCompare(const void *a, const void *b) {
176 uint c=*((uint*)a), d=*((uint*)b); return c>d?1:c<d?-1:0;

Calls 1

rleFrPolyFunction · 0.85

Tested by

no test coverage detected