I need to take the output flow (shaped (cols,rows,2)) of a dense optical flow calculated through this:
flow
flow = cv2.calcOpticalFlowFarneback(im0, im1, No