convexHullAsync function

Future<Mat> convexHullAsync(
  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

Future<Mat> convexHullAsync(
  VecPoint points, {
  Mat? hull,
  bool clockwise = false,
  bool returnPoints = true,
}) async {
  hull ??= Mat.empty();
  return cvRunAsync0(
    (callback) => cimgproc.cv_convexHull(points.ref, hull!.ref, clockwise, returnPoints, callback),
    (c) {
      return c.complete(hull);
    },
  );
}