| Cv2MinEnclosingTriangle Method (IEnumerablePoint2f, 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<Point2f> points,
out Point2f[] triangle
)
Public Shared Function MinEnclosingTriangle (
points As IEnumerable(Of Point2f),
<OutAttribute> ByRef triangle As Point2f()
) As Double
public:
static double MinEnclosingTriangle(
IEnumerable<Point2f>^ points,
[OutAttribute] array<Point2f>^% triangle
)
static member MinEnclosingTriangle :
points : IEnumerable<Point2f> *
triangle : Point2f[] byref -> float
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint2f
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