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

Function readFlowKITTI

core/utils/frame_utils.py:102–107  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

100
101
102def readFlowKITTI(filename):
103 flow = cv2.imread(filename, cv2.IMREAD_ANYDEPTH|cv2.IMREAD_COLOR)
104 flow = flow[:,:,::-1].astype(np.float32)
105 flow, valid = flow[:, :, :2], flow[:, :, 2]
106 flow = (flow - 2**15) / 64.0
107 return flow, valid
108
109def readDispKITTI(filename):
110 disp = cv2.imread(filename, cv2.IMREAD_ANYDEPTH) / 256.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected