Click or drag to resize

CvInvokeConvexHull Method (IInputArray, IOutputArray, Boolean, Boolean)

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

Namespace:  Emgu.CV
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public static void ConvexHull(
	IInputArray points,
	IOutputArray hull,
	bool clockwise = false,
	bool returnPoints = true
)

Parameters

points
Type: Emgu.CVIInputArray
Input 2D point set
hull
Type: Emgu.CVIOutputArray
Output convex hull. It is either an integer vector of indices or vector of points. In the first case, the hull elements are 0-based indices of the convex hull points in the original array (since the set of convex hull points is a subset of the original point set). In the second case, hull elements are the convex hull points themselves.
clockwise (Optional)
Type: SystemBoolean
Orientation flag. If it is true, the output convex hull is oriented clockwise. Otherwise, it is oriented counter-clockwise. The assumed coordinate system has its X axis pointing to the right, and its Y axis pointing upwards.
returnPoints (Optional)
Type: SystemBoolean
Operation flag. In case of a matrix, when the flag is true, the function returns convex hull points. Otherwise, it returns indices of the convex hull points. When the output array is std::vector, the flag is ignored, and the output depends on the type of the vector
See Also