http://www.emgu.com
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.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.2.1777 (2.4.2.1777)

Syntax

C#
public static MCvBox2D cvMinAreaRect2(
	IntPtr points,
	IntPtr storage
)
Visual Basic
Public Shared Function cvMinAreaRect2 ( _
	points As IntPtr, _
	storage As IntPtr _
) As MCvBox2D
Visual C++
public:
static MCvBox2D cvMinAreaRect2(
	IntPtr points, 
	IntPtr storage
)

Parameters

points
Type: System..::..IntPtr
Sequence of points, or two channel int/float depth matrix
storage
Type: System..::..IntPtr
temporary memory storage

Return Value

a circumscribed rectangle of the minimal area for 2D point set

See Also