minAreaRectAsync function

Future<RotatedRect> minAreaRectAsync(
  1. VecPoint points
)

MinAreaRect finds a rotated rectangle of the minimum area enclosing the input 2D point set.

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

Implementation

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