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)

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

- points (IntPtr)
- Sequence or array of 2D points
- center ( MCvPoint2D32f %)
- Output parameter. The center of the enclosing circle
- radius ( Single %)
- Output parameter. The radius of the enclosing circle.

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