boundingRect2f function

Rect boundingRect2f(
  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

Rect boundingRect2f(VecPoint2f points) {
  final rect = calloc<cvg.CvRect>();
  cvRun(() => cimgproc.cv_boundingRect2f(points.ref, rect, ffi.nullptr));
  return Rect.fromPointer(rect);
}