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

Function area

eval/CIPO_evaluation/pycocotools/mask.py:107–111  ·  view source on GitHub ↗
(rleObjs)

Source from the content-addressed store, hash-verified

105 return _mask.decode([rleObjs])[:,:,0]
106
107def area(rleObjs):
108 if type(rleObjs) == list:
109 return _mask.area(rleObjs)
110 else:
111 return _mask.area([rleObjs])[0]
112
113def toBbox(rleObjs):
114 if type(rleObjs) == list:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected