MCPcopy Create free account
hub / github.com/Relento/lego_release / encode

Function encode

data_generation/utils.py:54–59  ·  view source on GitHub ↗
(bimask)

Source from the content-addressed store, hash-verified

52
53
54def encode(bimask):
55 if len(bimask.shape) == 3:
56 return _mask.encode(bimask)
57 elif len(bimask.shape) == 2:
58 h, w = bimask.shape
59 return _mask.encode(bimask.reshape((h, w, 1), order='F'))[0]
60
61
62def decode(rleObjs):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected