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
a0b87245
Unverified
Commit
a0b87245
authored
Dec 22, 2021
by
Jiazhen Wang
Committed by
GitHub
Dec 22, 2021
Browse files
[Fix] compute distance to origin after sort (#1500)
parent
e4b5348e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mmcv/ops/csrc/common/box_iou_rotated_utils.hpp
mmcv/ops/csrc/common/box_iou_rotated_utils.hpp
+4
-0
No files found.
mmcv/ops/csrc/common/box_iou_rotated_utils.hpp
View file @
a0b87245
...
...
@@ -220,6 +220,10 @@ HOST_DEVICE_INLINE int convex_hull_graham(const Point<T> (&p)[24],
return
temp
>
0
;
}
});
// compute distance to origin after sort, since the points are now different.
for
(
int
i
=
0
;
i
<
num_in
;
i
++
)
{
dist
[
i
]
=
dot_2d
<
T
>
(
q
[
i
],
q
[
i
]);
}
#endif
// Step 4:
...
...
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