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
pointsInputArrayInput 2D point set
Returns
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
pointsIEnumerable<Point>Input 2D point set
Returns
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
pointsIEnumerable<Point2f>Input 2D point set