| Cv2FitEllipseDirect Method (IEnumerablePoint2f) |
Fits an ellipse around a set of 2D points.
The function calculates the ellipse that fits a set of 2D points.
It returns the rotated rectangle in which the ellipse is inscribed.
The Direct least square(Direct) method by @cite Fitzgibbon1999 is used.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static RotatedRect FitEllipseDirect(
IEnumerable<Point2f> points
)
Public Shared Function FitEllipseDirect (
points As IEnumerable(Of Point2f)
) As RotatedRect
public:
static RotatedRect FitEllipseDirect(
IEnumerable<Point2f>^ points
)
static member FitEllipseDirect :
points : IEnumerable<Point2f> -> RotatedRect
Parameters
- points
- Type: System.Collections.GenericIEnumerablePoint2f
Input 2D point set
Return Value
Type:
RotatedRect[Missing <returns> documentation for "M:OpenCvSharp.Cv2.FitEllipseDirect(System.Collections.Generic.IEnumerable{OpenCvSharp.Point2f})"]
See Also