imaqFitEllipse
Usage
int imaqFitEllipse(const PointFloat* points, int numPoints, BestEllipse* ellipse);
Purpose
Finds the ellipse that best represents the set of points.
Parameters
Name
|
Type
|
Description
|
points
|
const PointFloat*
|
The array of points to fit to the edge of the ellipse.
|
numPoints
|
int
|
The number of points in the supplied array. You must supply at least six points.
|
ellipse
|
BestEllipse*
|
On return, a structure describing the ellipse that best fit the points. This parameter is required and cannot be NULL.
|
Return Value
Type
|
Description
|
int |
On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().
|