MCPcopy Create free account
hub / github.com/drinkingcoder/NeuralMarker / writeFlowKITTI

Function writeFlowKITTI

core/utils/frame_utils.py:116–120  ·  view source on GitHub ↗
(filename, uv)

Source from the content-addressed store, hash-verified

114
115
116def 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
123def read_gen(file_name, pil=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected