(bimask)
| 92 | frPyObjects = _mask.frPyObjects |
| 93 | |
| 94 | def 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 | |
| 101 | def decode(rleObjs): |
| 102 | if type(rleObjs) == list: |
nothing calls this directly
no outgoing calls
no test coverage detected