minAreaRect2f function

RotatedRect minAreaRect2f(
  1. VecPoint2f 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

RotatedRect minAreaRect2f(VecPoint2f points) {
  final p = calloc<cvg.RotatedRect>();
  cvRun(() => cimgproc.cv_minAreaRect2f(points.ref, p, ffi.nullptr));
  return RotatedRect.fromPointer(p);
}