Skip to content

3D Circle

Operator Function

Find edge points in the ROI; fit a 3D circle based on the found edge points.

3D Circle

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
Use Region Parameterstrue/falsefalseIf enabled, use region as input; if disabled, use input image as input
Region2D Window/BoxBoxManually select appropriate ROI region
> Note: Ensure the ROI center point is inside the circle.
Can bind to select existing ROI region. When input is an array, output is also an array
Force Horizontal Fittrue/falsefalseForce horizontal fit means requiring the model's normal vector or main direction to be parallel to the horizontal plane when fitting planes or other geometric shapes, typically used to ensure the model is horizontal in certain application scenarios. When enabled, it will force correction from the red circle to the blue circle
Search ModeConical Point SearchConical Point SearchConical Point Search: Use the conical probe method to find edge points, controlling the probe angle to locate edge points in the point cloud

Probe Angle45Controlling the probe angle can affect the definition of edge points. Typically choose an appropriate angle range to ensure real edge points can be detected
Fitting MethodRansac/Least SquaresRansacRansac: Used to fit models from data, especially when there is noise or outliers in the data
Least Squares: Fit models by minimizing the sum of squared errors, suitable for situations with small errors, concentrated data points, uniform edge point distribution, and little noise
Distance Threshold0.02Used to define the maximum distance between a point and the fitted model. Points beyond this distance are considered outliers and do not participate in fitting
Maximum Iterations500Used to set the maximum number of iterations for the RANSAC algorithm. Generally, more iterations result in more accurate fitting results, but computational cost also increases

Tip

For more detailed explanations of parameter types, please refer to Type Definitions

Result Display

ParameterRangeDefault ValueDescriptionIllustration
ROI Point Settrue/falsefalseOnly effective when Use Region Parameters is selected. Region point set selected by ROI box. If enabled, display in the image
Edge Pointstrue/falsefalseEdge points. If enabled, display in the image
Circletrue/falsefalseFitted circle. If enabled, display in the image
Circle Centertrue/falsefalseCircle center. If enabled, display in the image
Radiustrue/falsefalseRadius. If enabled, display in the image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates a warning
false indicates no warning
MessagestringOutput success, error, or warning messages. Empty if no error or warning.
TimefloatOperator execution time, unit: ms
edge_cloud_pointpointset3D circle feature points When input is an array, output is also an array
circlecircle3dFound 3D circle coordinates and direction When input is an array, output is also an array
Rradius TextstringRadius value
Center Point 3Dpoint3dFound 3D circle center point

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1Input value is {0t}, invalid region typeRegion TypeOnly window2d, box, pointset supported
2Region point cloud is empty1. Check if point cloud is empty
2. Check if ROI selects point cloud
3. Check if binding is empty
3No plane foundRobustness content, rarely occurs
4Not foundAdjust fitting parameters

Example Introduction

Engineering Design

  1. Select the Load Point Cloud tool to load the required 3D point cloud image to IM0.

  2. Select the 3D Circle tool.

Tool Usage

  1. Select the input image for the operation. The image number must match the IM number where the image is located in the project.

  2. Select the region type as Box, move the box to the position to be measured, enclosing the point cloud area to be tested.

Usage Tips

  1. Use the ROI controller on the image window to drag or scale the box;
  2. Directly modify the box's start or end point coordinates in the calculation parameters to adjust the box position and size;
  1. Set the parameters.

  2. Check the content you want to display in the result display section.

  3. Click Test to check if the image window and parameters meet expectations.

  4. If there are no issues, click Save. Run the operator in the run list, and then view the running results in the corresponding IM.

Local Image

AI-Vision, Making 3D Measurement Easier