imaqFitCircle2

NI Vision for LabWindows/CVI Function

imaqFitCircle2

Usage

BestCircle2* imaqFitCircle2(const PointFloat* points, int numPoints, const FitCircleOptions* options);

Purpose

Finds the circle 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 circle.
numPoints int The number of points in the supplied array. You must supply at least three points.
options const FitCircleOptions* Describes how the function calculates the best fit circle.

Return Value

Type

Description

BestCircle2* On success, this function returns a structure describing the circle 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().