http://www.emgu.com
The function cvConvexHull2 finds convex hull of 2D point set using Sklansky's algorithm.

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

Syntax

C#
public static IntPtr cvConvexHull2(
	IntPtr input,
	IntPtr hullStorage,
	ORIENTATION orientation,
	int returnPoints
)
Visual Basic
Public Shared Function cvConvexHull2 ( 
	input As IntPtr,
	hullStorage As IntPtr,
	orientation As ORIENTATION,
	returnPoints As Integer
) As IntPtr
Visual C++
public:
static IntPtr cvConvexHull2(
	IntPtr input, 
	IntPtr hullStorage, 
	ORIENTATION orientation, 
	int returnPoints
)
F#
static member cvConvexHull2 : 
        input : IntPtr * 
        hullStorage : IntPtr * 
        orientation : ORIENTATION * 
        returnPoints : int -> IntPtr 

Parameters

input
Type: System..::..IntPtr
Sequence or array of 2D points with 32-bit integer or floating-point coordinates
hullStorage
Type: System..::..IntPtr
The destination array (CvMat*) or memory storage (CvMemStorage*) that will store the convex hull. If it is array, it should be 1d and have the same number of elements as the input array/sequence. On output the header is modified so to truncate the array downto the hull size
orientation
Type: Emgu.CV.CvEnum..::..ORIENTATION
Desired orientation of convex hull: CV_CLOCKWISE or CV_COUNTER_CLOCKWISE
returnPoints
Type: System..::..Int32
If non-zero, the points themselves will be stored in the hull instead of indices if hull_storage is array, or pointers if hull_storage is memory storage

Return Value

Type: IntPtr
If hull_storage is memory storage, the function creates a sequence containing the hull points or pointers to them, depending on return_points value and returns the sequence on output

See Also