Skip to content

3D Contour Step

Operator Function

Measure the step of the contour. When point-to-point mode is selected, measure the step in Z direction from point to reference point (directional, positive when point is above reference point, negative when below). When point-to-line mode is selected, measure the distance from point to reference line (non-directional).

Parameter Introduction

Input Parameters

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

Calculation Parameters

ParameterRangeDefault ValueDescriptionIllustration
ModeSee Mode
Reference PointSee Reference Point
Reference LineSee Reference Line
PointSee Point

Mode

ParameterRangeDefault ValueDescriptionIllustration
Point to PointWhen point-to-point mode is selected, measure the step in Z direction from point to reference point (directional).
Positive when point is above reference point, negative when below.
Point to LineWhen point-to-line mode is selected, measure the distance from point to reference line (non-directional).

Reference Point

Only enabled when mode is Point to Point, parameters for selecting input extraction point

ParameterRangeDefault ValueDescriptionIllustration
RegionType: 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.000Enable: 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 EdgeRising 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/BestBestFirst: 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

Reference Line

Only enabled when mode is Point to Line, parameters for selecting input extraction point

ParameterRangeDefault ValueDescriptionIllustration
Acquisition MethodHorizontal Reference Line/Fitted LineFitted LineSelect method to obtain reference line
Horizontal Reference Line: Set a Z value as horizontal reference line
Fitted Line: Use points in region to fit line as reference line
Value0.000Only enabled when acquisition method is Horizontal Reference Line; set value for horizontal reference line
RegionOnly enabled when acquisition method is Fitted Line; fit line based on points in region
Type: 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

Parameters for selecting input extraction point

ParameterRangeDefault ValueDescriptionIllustration
Region1D Window1D WindowType: Only enabled in manual mode; set manually selected type as 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
Point Feature Illustration
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
Reference Linetrue/falsefalseReference line for step calculation; if enabled, displayed in the image
Reference Pointtrue/falsefalseReference point for step calculation; if enabled, displayed in the image
Foot of Perpendiculartrue/falsefalseFoot of perpendicular from point to line; if enabled, displayed in the image
Measurement Pointtrue/falsefalseSearched measurement point; if enabled, displayed in the image
Measurement Segmenttrue/falsefalseStep measurement segment; if enabled, displayed in the image
Step Valuetrue/falsefalseStep 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
cross_section_stepfloatOutput step value

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
3Invalid region for input pointAdjust region parameters so input point cloud in region is not empty
4No inflection point foundAdjust inflection point parameters
5No edge point foundAdjust edge point parameters
6Input feature point type is {0}, invalid feature point typeFeature Point TypeSelect one of: Min X/Max X/Min Z/Max Z/Mean Point/Median Point/Inflection Point/Edge Point
7Invalid region for input lineInput line direction vector parameters cannot all be 0
8Input reference line acquisition method is {0}, invalid acquisition methodAcquisition MethodSelect reference line acquisition method as Fitted Line/Horizontal Reference Line
9Input mode is {0}, invalid input modeSelect mode as Point to Point/Point to Line
10Input point cloud is emptyConfirm if IM contains valid points; if no valid points, load point cloud or switch to IM with valid points

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 Step tool to measure point-to-point and point-to-line contour steps respectively.

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. Set input point or line:

If it's a point or fitted line, set the window position to get points or lines; if it's a baseline, set the baseline value.

  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