http://www.emgu.com
Finds the minimal circumscribed circle for 2D point set using iterative algorithm. It returns nonzero if the resultant circle contains all the input points and zero otherwise (i.e. algorithm failed)

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

Syntax

C#
public static bool cvMinEnclosingCircle(
	IntPtr points,
	out PointF center,
	out float radius
)
Visual Basic
Public Shared Function cvMinEnclosingCircle ( _
	points As IntPtr, _
	<OutAttribute> ByRef center As PointF, _
	<OutAttribute> ByRef radius As Single _
) As Boolean
Visual C++
public:
static bool cvMinEnclosingCircle(
	IntPtr points, 
	[OutAttribute] PointF% center, 
	[OutAttribute] float% radius
)

Parameters

points
Type: System..::..IntPtr
Sequence or array of 2D points
center
Type: System.Drawing..::..PointF%
Output parameter. The center of the enclosing circle
radius
Type: System..::..Single%
Output parameter. The radius of the enclosing circle.

Return Value

True if the resultant circle contains all the input points and false otherwise (i.e. algorithm failed)

See Also