MatConvexHullIndices Method
|
Computes convex hull for a set of 2D points.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic int[] ConvexHullIndices(
InputArray points,
bool clockwise = false
)
Public Function ConvexHullIndices (
points As InputArray,
Optional clockwise As Boolean = false
) As Integer()
public:
array<int>^ ConvexHullIndices(
InputArray^ points,
bool clockwise = false
)
member ConvexHullIndices :
points : InputArray *
?clockwise : bool
(* Defaults:
let _clockwise = defaultArg clockwise false
*)
-> int[]
function ConvexHullIndices(points, clockwise);
Parameters
- points
- Type: OpenCvSharpInputArray
The input 2D point set, represented by CV_32SC2 or CV_32FC2 matrix - clockwise (Optional)
- Type: SystemBoolean
If true, the output convex hull will be oriented clockwise,
otherwise it will be oriented counter-clockwise. Here, the usual screen coordinate
system is assumed - the origin is at the top-left corner, x axis is oriented to the right,
and y axis is oriented downwards.
Return Value
Type:
Int32The output convex hull. It is a vector of 0-based point
indices of the hull points in the original array (since the set of convex hull
points is a subset of the original point set).
See Also