Table of Contents

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

curve InputArray

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<Point>)

Calculates the up-right bounding rectangle of a point set.

public static Rect BoundingRect(IEnumerable<Point> curve)

Parameters

curve IEnumerable<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

curve IEnumerable<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.