CvMinAreaRect2 Method (CvArr, CvMemStorage) OpenCvSharp Class Library
Finds circumscribed rectangle of minimal area for given 2D point set

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static CvBox2D MinAreaRect2(
	CvArr points,
	CvMemStorage storage
)

Parameters

points
Type: OpenCvSharpCvArr
Sequence or array of points.
storage
Type: OpenCvSharpCvMemStorage
The point tested against the contour.

Return Value

Type: CvBox2D
The function cvMinAreaRect2 finds a circumscribed rectangle of the minimal area for 2D point set by building convex hull for the set and applying rotating calipers technique to the hull.
See Also

Reference