Table of Contents

Method FitEllipseDirect

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FitEllipseDirect(InputArray)

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.

public static RotatedRect FitEllipseDirect(InputArray points)

Parameters

points InputArray

Input 2D point set

Returns

RotatedRect

FitEllipseDirect(IEnumerable<Point>)

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.

public static RotatedRect FitEllipseDirect(IEnumerable<Point> points)

Parameters

points IEnumerable<Point>

Input 2D point set

Returns

RotatedRect

FitEllipseDirect(IEnumerable<Point2f>)

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.

public static RotatedRect FitEllipseDirect(IEnumerable<Point2f> points)

Parameters

points IEnumerable<Point2f>

Input 2D point set

Returns

RotatedRect