fitEllipse function

RotatedRect fitEllipse(
  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

RotatedRect fitEllipse(VecPoint points) {
  final p = calloc<cimgproc.RotatedRect>();
  cvRun(() => cimgproc.FitEllipse(points.ref, p));
  return RotatedRect.fromPointer(p);
}