Detect and Measure Line
Function
This Step is used to detect and measure line segments in the input image.
|
Before using this Step, enable the step_measure2d option under in the menu bar. Only then can the operation be performed. |
Usage Scenario
This Step is used to detect the pixel-wise positions of object edge line segments in images to prepare for subsequent calculation of physical dimensions in measurement scenarios.
Parameter Description
| Parameter | Description |
|---|---|
ROI |
Description: This parameter is used to specify the region of interest (ROI), which limits the detection and measurement range of a line segment. Instruction: The procedure for using this Step is as follows.
|
Position and Orientation Correction |
Description: This parameter is used to adjust the position and orientation of the ROI according to the input 2D transformation.
|
Number of Edge Detection Frames |
Parameter description: This parameter is used to set the number of edge detection frames generated within the set ROI. Object edge points used for fitting will be generated within each edge detection frame. The larger the value, the denser the edge point sampling and the higher the fitting accuracy; however, this also increases the computational load. If the value is too small, edge details may be lost.
|
Grayscale Change Lower Threshold |
Description: This Step is used to set the lower threshold of the grayscale change of the point in the edge detection frames.
|
Edge Detection Frame Half Width |
Description: This parameter is used to set the half width of the edge detection frame.
|
Sigma of Gaussian Filter |
Description: This parameter is used to filter the image vertically within the edge detection frames.
|
Edge Polarity Type |
Description: This parameter is used to specify which type of grayscale change will be considered as object edge points. The grayscale change is defined as the grayscale change vertically from top to bottom in an edge detection frame. Value list: White To Black, Black To White, Both
Default value: Both |
Edge Selection |
Description: This parameter is used to select edge points detected within the edge detection frame for fitting the complete edge. Value list: First, Second, Last, All
Default value: First |
Fitting Method |
Description: This parameter is used to specify the type of algorithm for line fitting. Value list: Least Squares, Huber
Default setting: Huber |
Visualization Settings
| Parameter | Description |
|---|---|
Draw ROI |
Description: This parameter is used to determine whether to display the centerline of the manually selected ROI on the image, which indicates the generation path and direction of the edge detection frames.
|
Draw Edge Detection Frames |
Description: This parameter is used to determine whether to display the edge detection frames used for extracting edge points on the image. Edge detection frames are generated along the centerline within the manually selected ROI and arranged perpendicular to the centerline to extract grayscale changes within these frames.
|
Draw Edge Points |
Description: This parameter is used to determine whether to display the object edge points used for fitting on the image. Object edge points are detected through grayscale changes in the edge detection frames.
|
Draw Detected Line Segment |
Description: This parameter is used to determine whether to display the detected line segment in the ROI on the image.
|