boundingRectAsync function

Future<Rect> boundingRectAsync(
  1. VecPoint points
)

BoundingRect calculates the up-right bounding rectangle of a point set.

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

Implementation

Future<Rect> boundingRectAsync(VecPoint points) async {
  final rect = calloc<cvg.CvRect>();
  return cvRunAsync0((callback) => cimgproc.cv_boundingRect(points.ref, rect, callback), (c) {
    return c.complete(Rect.fromPointer(rect));
  });
}