mirror of https://github.com/open-mmlab/mmcv.git
[Fix] compute distance to origin after sort (#1500)
parent
e4b5348ebf
commit
a0b87245f3
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue