Table of Contents

Method FitEllipseAMS

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

FitEllipseAMS(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 Approximate Mean Square(AMS) proposed by @cite Taubin1991 is used.

public static RotatedRect FitEllipseAMS(InputArray points)

Parameters

points InputArray

Input 2D point set

Returns

RotatedRect

FitEllipseAMS(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 Approximate Mean Square(AMS) proposed by @cite Taubin1991 is used.

public static RotatedRect FitEllipseAMS(IEnumerable<Point> points)

Parameters

points IEnumerable<Point>

Input 2D point set

Returns

RotatedRect

FitEllipseAMS(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 Approximate Mean Square(AMS) proposed by @cite Taubin1991 is used.

public static RotatedRect FitEllipseAMS(IEnumerable<Point2f> points)

Parameters

points IEnumerable<Point2f>

Input 2D point set

Returns

RotatedRect