Skip to content

3D Contour Distance

Operator Function

Measure the distance between two points in the contour.

Parameter Introduction

Input Parameters

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

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
Region1D Window1D WindowType: Only enabled in manual mode; set manually selected type: 1D Window
Start Point: Only enabled in manual mode; input X, Z coordinates of start point
End Point: Only enabled in manual mode; input X, Z coordinates of end point
Point FeatureMin X, Max X, Min Z, Max Z, Mean, Median, Inflection Point, Edge PointMeanMin X: Point with smallest X value among all points in region
Max X: Point with largest X value among all points in region
Min Z: Point with smallest Z value among all points in region
Max Z: Point with largest Z value among all points in region
Mean: Point formed by calculating X, Z average of all points in region
Median: When point count in region is odd, take median point after sorting by X ascending; when even, take average of two median points
Inflection Point: Where slope changes significantly on contour
Edge Point: Feature points extracted based on adjacent point rise/fall and position after sorting contour left to right
Inflection Point Search Type-X/+X/-Z/+Z+Z-X: Search for leftmost inflection point
+X: Search for rightmost inflection point
-Z: Search for bottommost inflection point
+Z: Search for topmost inflection point
Noise Removal0.000Only enabled when feature point is Inflection Point
Enable: If enabled, filter out inflection points with small jumps
Threshold: Minimum difference to filter out interference points in Z direction
Edge Point DirectionRising Edge/Falling Edge/Rising or Falling EdgeRising or Falling EdgeOnly enabled when feature point is Edge Point
Rising Edge: Search in rising direction from left to right along contour
Falling Edge: Search in falling direction from left to right along contour
Rising or Falling Edge: Search in rising or falling direction from left to right
Edge Point PositionFirst/Last/BestBestOnly enabled when feature point is Edge Point
First: First edge point meeting requirements from left to right on contour
Last: Last edge point meeting requirements from left to right on contour
Best: Edge point with largest height difference among those meeting requirements from left to right

Result Display

ParameterRangeDefault ValueDescriptionIllustration
Point 1true/falsefalseIf enabled, display Point 1 in the image
Point 2true/falsefalseIf enabled, display Point 2 in the image
Connection Segmenttrue/falsefalseIf enabled, display connection segment in the image
X-direction Segmenttrue/falsefalseIf enabled, display X-direction segment in the image
Z-direction Segmenttrue/falsefalseIf enabled, display Z-direction segment in the image
Connection Measurementtrue/falsefalseConnection measurement value; if enabled, displayed in the image
X-direction Measurementtrue/falsefalseX-direction measurement value; if enabled, displayed in the image
Z-direction Measurementtrue/falsefalseZ-direction measurement value; if enabled, displayed 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
lines_distancefloatOutput connection distance
distance_in_x_directionfloatOutput X-direction distance
distance_in_z_directionfloatOutput Z-direction distance

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 Point 1Adjust start and end parameters of Point 1 acquisition region to ensure valid points exist in selected area
4Error getting region for Point 2Adjust start and end parameters of Point 2 acquisition region to ensure valid points exist in selected area
5Point 1 parameters invalidAdjust feature point type or related parameters
6No inflection point foundAdjust inflection point related parameters
7No edge point foundAdjust edge point related parameters
8Input reference point feature type is {0}, invalid feature point typeGeometry TypeSelect feature type as Point
9Point 2 parameters invalidAdjust feature point type or related parameters

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 Distance tool to measure contour distances with different point features.

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 to be measured, enclosing the area where points need to be acquired.

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. Set 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, then run the operator in the run list to view the results in the corresponding IM

Local Image

AI-Vision, Making 3D Measurement Easier