Click or drag to resize

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
)

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: Double
Triangle area
See Also