BestCircle2

NI Vision for LabWindows/CVI Function

BestCircle2

Describes a circle that best fits a set of points.

Elements

Name

Type

Description

center PointFloat The coordinate location of the center of the circle.
radius double The radius of the circle.
area double The area of the circle.
perimeter double The length of the perimeter of the circle.
error double Represents the least square error of the fitted circle to the entire set of points.
valid int This element is TRUE if the function achieved the minimum score within the number of allowed refinement iterations and FALSE if the function did not achieve the minimum score.
pointsUsed int* An array of the indexes for the points array indicating which points the function used to fit the circle. If rejectOutliers is FALSE, this array is set to NULL.
numPointsUsed int The number of points the function used to fit the circle.