Unverified Commit 6988de82 authored by lizz's avatar lizz Committed by GitHub
Browse files

Update optflow.py (#335)

parent 67a26da9
...@@ -55,8 +55,6 @@ def flow2rgb(flow, color_wheel=None, unknown_thr=1e6): ...@@ -55,8 +55,6 @@ def flow2rgb(flow, color_wheel=None, unknown_thr=1e6):
dx /= max_rad dx /= max_rad
dy /= max_rad dy /= max_rad
[h, w] = dx.shape
rad = np.sqrt(dx**2 + dy**2) rad = np.sqrt(dx**2 + dy**2)
angle = np.arctan2(-dy, -dx) / np.pi angle = np.arctan2(-dy, -dx) / np.pi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment