(filename, uv)
| 114 | |
| 115 | |
| 116 | def writeFlowKITTI(filename, uv): |
| 117 | uv = 64.0 * uv + 2**15 |
| 118 | valid = np.ones([uv.shape[0], uv.shape[1], 1]) |
| 119 | uv = np.concatenate([uv, valid], axis=-1).astype(np.uint16) |
| 120 | cv2.imwrite(filename, uv[..., ::-1]) |
| 121 | |
| 122 | |
| 123 | def read_gen(file_name, pil=False): |
nothing calls this directly
no outgoing calls
no test coverage detected