Fit Circle to Profile
Description
This Step is used to fit a circle to the input profile and output various features of the fitted circle.
Fits a circle to the entire profile |
Workflow
The process of configuring this Step is shown below.
-
Configure the input. Connect the Step ports in the graphical programming workspace or select the input under Input in the parameter configuration panel.
-
Determine whether to use a feature region.
-
Select the fitting method and set relevant parameters.
-
Select the desired output(s) under Output. For an expandable output item, click ▶ and configure the Min and Max values of the acceptable range.
Parameter Description
Parameter | Description | ||
---|---|---|---|
Use Feature Region |
When this option is selected, this Step only uses data within the feature region to fit a circle. When this option is unselected, this Step uses the entire profile to fit a circle.
|
||
Fitting Method |
This parameter specifies the method of fitting the circle to the profile.
|
||
Outlier Fraction |
This parameter defines the proportion of outliers to be removed during circle fitting, thus resulting in a better result. |
||
Tolerance |
This parameter refers to the distance threshold used in the RANSAC algorithm when determining the adequacy of a data point for fitting a model. If the distance between a data point and the fitted circle is less than or equal to the tolerance, the data point is considered an inlier, i.e., a point suitable for fitting the model, while points with a distance greater than the tolerance are considered outliers that will cause interference. By adjusting Tolerance, it is possible to control the sensitivity of the RANSAC algorithm to noise and outliers. The larger the value, the more easily the noise are recognized as inliers, and vice versa. Default setting: 0.001 mm |
||
Number of Iterations |
In RANSAC, this parameter defines how many times the algorithm will randomly sample the data and fit a model to the sampled points. Default value: 1000
|
Output Description
Select the output item(s) to add the output port(s) to the Step, and the corresponding data will be output after the Step is run. You can select the output according to the actual measurement requirements.
If you select an expandable output item, you must expand it by clicking ▶, and then set the Min and Max values to determine the acceptable range. If the output value falls within the acceptable range, the measurement item is judged as passing (OK), or else it is judged as failing (NG). |
Output Item | Description |
---|---|
Circle Center X |
X value of the center of the fitted circle. |
Circle Center Z |
Z value of the center of the fitted circle. |
Radius |
The radius of the fitted circle. |
Standard Deviation |
The standard deviation of the data points with respect to the fitted circle. |
Min Error |
The minimum error of the data points with respect to the fitted circle. |
Max Error |
The maximum error of the data points with respect to the fitted circle. |
Min Error X |
The X value of the point with the minimum error. |
Min Error Z |
The Z value of the point with the minimum error. |
Max Error X |
The X value of the point with the maximum error. |
Max Error Z |
The Z value of the point with the maximum error. |
Center of Fitted Circle |
The center point of the fitted circle. |
Fitted Circle |
The fitted circle obtained. |
Troubleshooting
|
CV-W5501
Error: The “Outlier Fraction” value is not within [0, 1].
Possible cause: The set outlier fraction is not within [0, 1].
Solution: Reset “Outlier Fraction” to ensure that the value is within 0-100%.