You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to use the output of the net (H -> homography matrix) to create an optical flow map
the pred_full is correct and the interpolate returns the correct frame, however when is use the formula the create the map from the matrix i get worng flow values
code use to calc the map:
new cord is the cord for frame 2
H is homo matrix
newCord = np.matmul(**H**,oldCord)
newCord[0,:] = newCord[0,:]/newCord[2,:]
newCord[1,:] = newCord[1,:]/newCord[2,:]
newX = np.reshape(newCord[0,:],(rows,cols))
newY = np.reshape(newCord[1,:],(rows,cols))
dX = newCord[0,:] - X.flatten()
dY = newCord[1,:] - Y.flatten()```
What am i doing wrong???
The text was updated successfully, but these errors were encountered:
Im trying to use the output of the net (H -> homography matrix) to create an optical flow map
the pred_full is correct and the interpolate returns the correct frame, however when is use the formula the create the map from the matrix i get worng flow values
code use to calc the map:
The text was updated successfully, but these errors were encountered: