imaqFitCircle

NI Vision for LabWindows/CVI Function

imaqFitCircle

Usage

int imaqFitCircle(const PointFloat* points, int numPoints, BestCircle* circle);

Purpose

Finds the circle that best represents the set of points.

Note   This function is obsolete. The replacement function is imaqFitCircle2().

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.
circle BestCircle* On return, a structure describing the circle 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().