2D Geometric-Feature Localization
Function Description
This Step precisely localizes the target object by detecting predefined line or circular features in the image and outputs the precise pose of the target object.
Usage Scenario
This Step is suitable for scenarios where the target object has distinct and stable geometric features and needs to be precisely localized based on these features.
Input and Output
Parameter Description
| Parameter | Description |
|---|---|
Localization Mode |
Selects the combination of geometric features to use. After selecting the localization mode, draw the required number and types of feature ROIs according to the selected mode. Value List: Four-Line Localization, Two-Line Localization, Two-Circle Localization, Four-Circle Localization, One-Circle-and-One-Line Localization
|
Four-Line Localization
Click the draw button and drag in the data visualization area to draw four line ROIs, each covering one of the four edges to be detected. The system extracts multiple columns of pixels according to the caliper settings. The edge points detected in each column are used for line fitting.
In the data visualization window, the arrow on each caliper indicates its edge detection direction. The Step detects edge points along this direction. For stable line edge detection, the direction should be as perpendicular as possible to the edge to be detected.
If the line to be detected is tilted, adjust the rotation angle of the rectangular ROI so that the calipers and their detection directions rotate along with the ROI to match the line’s orientation.
After drawing the ROIs, configure geometric feature detection using the following parameters.
| Parameter | Description |
|---|---|
Edge Polarity |
Specifies the direction in which the grayscale values change at the edges. Value List:
|
Filter Window Size |
Specifies the window size used when filtering each column of pixels along its direction. Filtering can reduce noise and improve the stability of edge detection results. |
Edge Type |
Defines the edge types to be retained in edge detection. Value List: Best, First, Last |
Gray Value Change Threshold |
An edge point is detected only if the grayscale value change between adjacent pixels at the edge of an extracted pixel column is greater than or equal to this threshold. Setting this parameter appropriately can effectively filter out weak edges and noise. |
Use Relative Threshold |
When selected, an edge point is detected only if the grayscale value change between adjacent pixels at the edge of a pixel column meets or exceeds the specified percentage of the maximum change in that column. When this option is selected, set Relative Threshold. |
Outlier Fraction |
The percentage of outlier points to be removed during line or circle fitting. |
Two-Line Localization
Click the draw button and drag in the data visualization area to draw two line ROIs, each covering one of the two edges to be detected. The system extracts multiple columns of pixels according to the caliper settings. The edge points detected in each column are used for line fitting.
In the data visualization window, the arrow on each caliper indicates its edge detection direction. For stable line edge detection, this direction should be as perpendicular as possible to the edge to be detected. If the line to be detected is tilted, adjust the rotation angle of the rectangular ROI so that the calipers and their detection directions rotate along with the ROI.
After drawing the ROIs, configure geometric feature detection using the following parameters.
| Parameter | Description |
|---|---|
Edge Polarity |
Specifies the direction in which the grayscale values change at the edges. Value List:
|
Filter Window Size |
Specifies the window size used when filtering each column of pixels along its direction. Filtering can reduce noise and improve the stability of edge detection results. |
Edge Type |
Defines the edge types to be retained in edge detection. Value List: Best, First, Last |
Gray Value Change Threshold |
An edge point is detected only if the grayscale value change between adjacent pixels at the edge of an extracted pixel column is greater than or equal to this threshold. Setting this parameter appropriately can effectively filter out weak edges and noise. |
Use Relative Threshold |
When selected, an edge point is detected only if the grayscale value change between adjacent pixels at the edge of a pixel column meets or exceeds the specified percentage of the maximum change in that column. When this option is selected, set Relative Threshold. |
Outlier Fraction |
The percentage of outlier points to be removed during line or circle fitting. |
Two-Circle Localization
Click the draw button and drag in the data visualization area to draw two circular ROIs, each covering one of the two circular features to be detected. The system extracts multiple columns of pixels according to the caliper settings. The edge points detected in each column are used for circle fitting.
For circular ROIs, calipers detect edges from inside the ROI outward. The caliper direction generally does not need to be adjusted, and rotating the ROI does not change the detection direction.
After drawing the ROIs, configure geometric feature detection using the following parameters.
| Parameter | Description |
|---|---|
Edge Polarity |
Specifies the direction in which the grayscale values change at the edges. Value List:
|
Filter Window Size |
Specifies the window size used when filtering each column of pixels along its direction. Filtering can reduce noise and improve the stability of edge detection results. |
Edge Type |
Defines the edge types to be retained in edge detection. Value List: Best, First, Last |
Gray Value Change Threshold |
An edge point is detected only if the grayscale value change between adjacent pixels at the edge of an extracted pixel column is greater than or equal to this threshold. Setting this parameter appropriately can effectively filter out weak edges and noise. |
Use Relative Threshold |
When selected, an edge point is detected only if the grayscale value change between adjacent pixels at the edge of a pixel column meets or exceeds the specified percentage of the maximum change in that column. When this option is selected, set Relative Threshold. |
Outlier Fraction |
The percentage of outlier points to be removed during line or circle fitting. |
Four-Circle Localization
Click the draw button and drag in the data visualization area to draw four circular ROIs, each covering one of the four circular features to be detected. The system extracts multiple columns of pixels according to the caliper settings. The edge points detected in each column are used for circle fitting.
For circular ROIs, calipers detect edges from inside the ROI outward. The caliper direction generally does not need to be adjusted, and rotating the ROI does not change the detection direction.
After drawing the ROIs, configure geometric feature detection using the following parameters.
| Parameter | Description |
|---|---|
Edge Polarity |
Specifies the direction in which the grayscale values change at the edges. Value List:
|
Filter Window Size |
Specifies the window size used when filtering each column of pixels along its direction. Filtering can reduce noise and improve the stability of edge detection results. |
Edge Type |
Defines the edge types to be retained in edge detection. Value List: Best, First, Last |
Gray Value Change Threshold |
An edge point is detected only if the grayscale value change between adjacent pixels at the edge of an extracted pixel column is greater than or equal to this threshold. Setting this parameter appropriately can effectively filter out weak edges and noise. |
Use Relative Threshold |
When selected, an edge point is detected only if the grayscale value change between adjacent pixels at the edge of a pixel column meets or exceeds the specified percentage of the maximum change in that column. When this option is selected, set Relative Threshold. |
Outlier Fraction |
The percentage of outlier points to be removed during line or circle fitting. |
One-Circle-and-One-Line Localization
Click the draw button and draw one line ROI and one circular ROI to cover the line edge and circular feature to be detected. The system extracts multiple columns of pixels according to the caliper settings. The edge points detected in each column are used for line and circle fitting.
For the line ROI, the arrow on each caliper indicates its edge detection direction. This direction should be as perpendicular as possible to the line edge to be detected. If the line to be detected is tilted, adjust the rotation angle of the rectangular ROI so that the calipers and their detection directions rotate along with the ROI.
For the circular ROI, calipers detect edges from inside the ROI outward. The caliper direction generally does not need to be adjusted, and rotating the ROI does not change the detection direction.
After drawing the ROIs, configure geometric feature detection using the following parameters.
| Parameter | Description |
|---|---|
Edge Polarity |
Specifies the direction in which the grayscale values change at the edges. Value List:
|
Filter Window Size |
Specifies the window size used when filtering each column of pixels along its direction. Filtering can reduce noise and improve the stability of edge detection results. |
Edge Type |
Defines the edge types to be retained in edge detection. Value List: Best, First, Last |
Gray Value Change Threshold |
An edge point is detected only if the grayscale value change between adjacent pixels at the edge of an extracted pixel column is greater than or equal to this threshold. Setting this parameter appropriately can effectively filter out weak edges and noise. |
Use Relative Threshold |
When selected, an edge point is detected only if the grayscale value change between adjacent pixels at the edge of a pixel column meets or exceeds the specified percentage of the maximum change in that column. When this option is selected, set Relative Threshold. |
Outlier Fraction |
The percentage of outlier points to be removed during line or circle fitting. |