fitEllipse2fAsync function

Future<RotatedRect> fitEllipse2fAsync(
  1. VecPoint2f points
)

FitEllipse Fits an ellipse around a set of 2D points.

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

Implementation

Future<RotatedRect> fitEllipse2fAsync(VecPoint2f points) async {
  final p = calloc<cvg.RotatedRect>();
  return cvRunAsync0((callback) => cimgproc.cv_fitEllipse2f(points.ref, p, callback), (c) {
    return c.complete(RotatedRect.fromPointer(p));
  });
}