Commit 27fcb6ce authored by limm's avatar limm
Browse files

fix min area polygons core dumped

parent c1aa4030
...@@ -158,7 +158,7 @@ __device__ inline void minBoundingRect(Point *ps, int n_points, float *minbox) { ...@@ -158,7 +158,7 @@ __device__ inline void minBoundingRect(Point *ps, int n_points, float *minbox) {
} }
// convex_find // convex_find
__device__ inline void Jarvis(Point *in_poly, int &n_poly) { __attribute__((optnone)) __device__ inline void Jarvis(Point *in_poly, int &n_poly) {
int n_input = n_poly; int n_input = n_poly;
Point input_poly[20]; Point input_poly[20];
for (int i = 0; i < n_input; i++) { for (int i = 0; i < n_input; i++) {
......
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