convexHull function

Mat convexHull(
  1. VecPoint points, {
  2. Mat? hull,
  3. bool clockwise = false,
  4. bool returnPoints = true,
})

ConvexHull finds the convex hull of a point set.

For further details, please see: https:///docs.opencv.org/master/d3/dc0/group__imgproc__shape.html#ga014b28e56cb8854c0de4a211cb2be656

Implementation

Mat convexHull(VecPoint points, {Mat? hull, bool clockwise = false, bool returnPoints = true}) {
  hull ??= Mat.empty();
  cvRun(() => cimgproc.ConvexHull(points.ref, hull!.ref, clockwise, returnPoints));
  return hull;
}