Skip to content

3D Contour Intersection

Operator Function

On the contour image, extract two straight lines respectively. If the two lines intersect, output the intersection point coordinates. If the two lines are parallel, an error is reported.

Contour Intersection

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80The IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
RegionOnly enabled when acquisition method is line fitting; fit line based on points within the region
Type1D Window1D WindowOnly enabled in manual mode; set manually selected type: 1D Window
Start PointOnly enabled in manual mode; input X, Z coordinates of start point
End PointOnly enabled in manual mode; input X, Z coordinates of end point
Calculate AngleIf enabled, calculate the angle between lines

Result Display

ParameterRangeDefault ValueDescriptionIllustration
Line 1true/falsefalseIf enabled, display Line 1 in the image
Line 2true/falsefalseIf enabled, display Line 2 in the image
Intersection Pointtrue/falsefalseIf enabled, display the intersection point of two lines in the image
Angletrue/falsefalseIf enabled, display the angle between two lines in the image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates there is a warning
false indicates there is none
MessagestringOutputs success, error, or warning information; if there is no error or warning, it is empty
TimefloatOperator execution time, unit: ms
intersection_pointpoint1dOutput intersection point

Tip

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

Exception Troubleshooting

No.Exception InformationCorresponding ParameterSolution
1Failed to get feature points in crop regionAdjust start and end parameters of point acquisition region to ensure valid points exist in selected area
2Input region type is {0}, invalid region typeRegion TypeInput region type must be 1D Window
3Error getting region for Line 1Adjust start and end parameters of Line 1 acquisition region to ensure at least two valid points exist in selected area
4Error getting region for Line 2Adjust start and end parameters of Line 2 acquisition region to ensure at least two valid points exist in selected area
5Two lines are parallel--

Example Introduction

Engineering Design

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

  2. Select the 3D Contour Extraction tool to extract contours into IM1, IM2, IM3 respectively.

  3. Select the 3D Contour Intersection tool.

Tool Usage

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

  2. Move the window to the position where line fitting is needed, enclosing the area where line fitting is required.

Usage Tips

  1. Use the ROI controller on the image window to drag or scale the window;
  2. Directly modify the start or end coordinates of the window in the calculation parameters to adjust the window position and size;
  1. Check the content you want to display in the result display section

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

  3. If there are no issues, click Save, then run the operator in the run list to view the results in the corresponding IM

Local Image

AI-Vision, Making 3D Measurement Easier