First time here? Check out the FAQ!
answered 2016-07-05 01:11:24 -0600
imho, your way to acess the flow array is broken.
a 'correct' numpy slice would look like:
flow[:,:,0] # 1st channel (dx) flow[:,:,1] # 2nd channel (dy)