Method BoundingRect
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
BoundingRect(InputArray)
Calculates the up-right bounding rectangle of a point set.
public static Rect BoundingRect(InputArray curve)
Parameters
curveInputArrayThe input 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Returns
- Rect
Minimal up-right bounding rectangle for the specified point set.
BoundingRect(IEnumerable<Point>)
Calculates the up-right bounding rectangle of a point set.
public static Rect BoundingRect(IEnumerable<Point> curve)
Parameters
curveIEnumerable<Point>The input 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Returns
- Rect
Minimal up-right bounding rectangle for the specified point set.
BoundingRect(IEnumerable<Point2f>)
Calculates the up-right bounding rectangle of a point set.
public static Rect BoundingRect(IEnumerable<Point2f> curve)
Parameters
curveIEnumerable<Point2f>The input 2D point set, represented by CV_32SC2 or CV_32FC2 matrix.
Returns
- Rect
Minimal up-right bounding rectangle for the specified point set.