fitEllipseAsync function

Future<RotatedRect> fitEllipseAsync(
  1. VecPoint points
)

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

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

Implementation

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