boundingRect2fAsync function

Future<Rect> boundingRect2fAsync(
  1. VecPoint2f 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> boundingRect2fAsync(VecPoint2f points) async {
  final rect = calloc<cvg.CvRect>();
  return cvRunAsync0((callback) => cimgproc.cv_boundingRect2f(points.ref, rect, callback), (c) {
    return c.complete(Rect.fromPointer(rect));
  });
}