(filename)
| 107 | return flow, valid |
| 108 | |
| 109 | def 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 | |
| 116 | def writeFlowKITTI(filename, uv): |
nothing calls this directly
no outgoing calls
no test coverage detected