imaqFitEllipse2

NI Vision for LabWindows/CVI Function

imaqFitEllipse2

Usage

BestEllipse2* imaqFitEllipse2(const PointFloat* points, int numPoints, const FitEllipseOptions* options);

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. If the rejectOutliers element of the options input is TRUE, you must supply at least five points. Otherwise, you must supply at least six points.
options const FitEllipseOptions* Describes how the function calculates the best fit ellipse.

Return Value

Type

Description

BestEllipse2* On success, this function returns a structure describing the ellipse that best fit the points. On failure, this function returns NULL. To get extended error information, call imaqGetLastError(). When you are finished with the structure, dispose of it by calling imaqDispose().