Open Pixie8888 opened 3 years ago
Set step to -1
Thanks for the quick reply! Does that mean: In opencv function, to compute backward optical flow, just simply change prvs to img_t+1, next to img_t?
prvs = img_t+1 next = img_t flow = cv2.calcOpticalFlowFarneback(prvs,next, None, 0.5, 3, 8, 3, 5, 1.2, 0)
If you are using denseflow,, then simply set the step argument to -1. e.g.,
denseflow test.avi -b=20 -a=tvl1 -s=-1 -v
Hi, thanks for this wonderful work! I am wondering how can I compute backward optical flow using denseflow? e.g. optical flow from t+1 to t.