| Cv2MinEnclosingTriangle Method (IEnumerablePoint, Point2f) |
Finds a triangle of minimum area enclosing a 2D point set and returns its area.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static double MinEnclosingTriangle(
IEnumerable<Point> points,
out Point2f[] triangle
)
Public Shared Function MinEnclosingTriangle (
points As IEnumerable(Of Point),
<OutAttribute> ByRef triangle As Point2f()
) As Double
public:
static double MinEnclosingTriangle(
IEnumerable<Point>^ points,
[OutAttribute] array<Point2f>^% triangle
)
static member MinEnclosingTriangle :
points : IEnumerable<Point> *
triangle : Point2f[] byref -> float
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint
Input vector of 2D points with depth CV_32S or CV_32F, stored in std::vector or Mat - triangle
- Type: OpenCvSharpPoint2f
Output vector of three 2D points defining the vertices of the triangle. The depth
Return Value
Type:
DoubleTriangle area
See Also