Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Structural Analysis and Shape Descriptors » cvFitEllipse

cvFitEllipse


Fits an ellipse around a set of 2D points.

Name Type Description
inPoints Point2DArray Input Point2D array.
outRect Path

Description

The function calculates the ellipse that fits (in least-squares sense) a set of 2D points best of all. outRect is the rotated rectangle in which the ellipse is inscribed.

Examples

Output path of cvFitEllipse performed on set of points from sample image drawn on this image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input array must contain at least 5 elements in cvFitEllipse.

Complexity Level

This filter is available on Basic Complexity Level.