convexHull error

asked 2018-05-17 21:18:45 -0500

billqu gravatar image

updated 2018-05-18 01:50:33 -0500

LBerger gravatar image

I use vs2017 and opencv 3.0 x86 version. my code below:

// Find convex hull
vector<Point2f> hull1;
vector<Point2f> hull2;
vector<int> hullIndex;

convexHull(points2, hullIndex, false, false);

points2's size is 68. but hullIndex's size is huge.

how to fix the error.

Thank you.

edit retag flag offensive close merge delete


1 - read doc

2- how do you extract hull index ?

LBerger gravatar imageLBerger ( 2018-05-18 01:56:18 -0500 )edit