minAreaRect function

RotatedRect minAreaRect(
  1. VecPoint 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 minAreaRect(VecPoint points) {
  final p = calloc<cimgproc.RotatedRect>();
  cvRun(() => cimgproc.MinAreaRect(points.ref, p));
  return RotatedRect.fromPointer(p);
}