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)
Syntaxpublic static void ConvexHull(
IInputArray points,
IOutputArray hull,
bool clockwise = false,
bool returnPoints = true
)
Public Shared Sub ConvexHull (
points As IInputArray,
hull As IOutputArray,
Optional clockwise As Boolean = false,
Optional returnPoints As Boolean = true
)
public:
static void ConvexHull(
IInputArray^ points,
IOutputArray^ hull,
bool clockwise = false,
bool returnPoints = true
)
static member ConvexHull :
points : IInputArray *
hull : IOutputArray *
?clockwise : bool *
?returnPoints : bool
(* Defaults:
let _clockwise = defaultArg clockwise false
let _returnPoints = defaultArg returnPoints true
*)
-> unit
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