opencv中的convexhull函数,void convexHull( InputArray points, OutputArray hull, bool clockwise = false, bool returnPoints = true );
points:输入,点集
hull:输出,凸包顶点(坐标(std::vector<cv::Point>)或者点集的index(std::vector<int>))
clockwise:顺时针为true,逆时针为false。这里需要注意的是,坐标系为笛卡尔坐标系(x向右,y向上),所以对于图像坐标系来说,正好相反。
returnPoints:表示返回坐标还是index