Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvFitEllipse
Module: | OpenCV |
---|
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
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.