| Cv2ConvexHull Method (IEnumerablePoint2f, Boolean) |
Computes convex hull for a set of 2D points.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static Point2f[] ConvexHull(
IEnumerable<Point2f> points,
bool clockwise = false
)
Public Shared Function ConvexHull (
points As IEnumerable(Of Point2f),
Optional clockwise As Boolean = false
) As Point2f()
public:
static array<Point2f>^ ConvexHull(
IEnumerable<Point2f>^ points,
bool clockwise = false
)
static member ConvexHull :
points : IEnumerable<Point2f> *
?clockwise : bool
(* Defaults:
let _clockwise = defaultArg clockwise false
*)
-> Point2f[]
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint2f
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:
Point2fThe output convex hull. It is a vector of points that form
the hull (must have the same type as the input points).
See Also