Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
6988de82
Unverified
Commit
6988de82
authored
Jun 12, 2020
by
lizz
Committed by
GitHub
Jun 12, 2020
Browse files
Update optflow.py (#335)
parent
67a26da9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
mmcv/visualization/optflow.py
mmcv/visualization/optflow.py
+0
-2
No files found.
mmcv/visualization/optflow.py
View file @
6988de82
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment