boundingRect function

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

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