TapLab
TapLab copied to clipboard
Code about mvCont
Hi, the code to realize the flow
flow[0,:,:,0] = cv2.resize(np.float32(mvCont[0,:,:,1]), (0,0), fx=feat_size[1]/input_size[1], fy=feat_size[0]/input_size[0], interpolation = cv2.INTER_LINEAR)*feat_size[0]/input_size[0]
flow[0,:,:,1] = cv2.resize(np.float32(mvCont[0,:,:,0]), (0,0), fx=feat_size[1]/input_size[1], fy=feat_size[0]/input_size[0], interpolation = cv2.INTER_LINEAR)*feat_size[1]/input_size[1]
Why there is reversion that flow[0,:,:,0] meet mvCont[0,:,:,1]