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

Function readDispKITTI

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

Source from the content-addressed store, hash-verified

107 return flow, valid
108
109def readDispKITTI(filename):
110 disp = cv2.imread(filename, cv2.IMREAD_ANYDEPTH) / 256.0
111 valid = disp > 0.0
112 flow = np.stack([-disp, np.zeros_like(disp)], -1)
113 return flow, valid
114
115
116def writeFlowKITTI(filename, uv):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected