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

Function encode

eval/CIPO_evaluation/pycocotools/mask.py:94–99  ·  view source on GitHub ↗
(bimask)

Source from the content-addressed store, hash-verified

92frPyObjects = _mask.frPyObjects
93
94def encode(bimask):
95 if len(bimask.shape) == 3:
96 return _mask.encode(bimask)
97 elif len(bimask.shape) == 2:
98 h, w = bimask.shape
99 return _mask.encode(bimask.reshape((h, w, 1), order='F'))[0]
100
101def decode(rleObjs):
102 if type(rleObjs) == list:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected