Detect Edge Point

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Description

This Step detects a qualifying edge point along the longitudinal centerline of the specified region in the input image.

Usage Scenario

This Step is a general geometric feature detection Step.

Workflow

The process of configuring this Step is shown below:

workflow
  1. Configure the input. Connect the Step ports in the graphical programming workspace or select the input under Input in the parameter configuration panel.

  2. Complete the ROI Settings.

  3. Set other parameters.

  4. Confirm the output items in the Output section.

  5. Run the Step, and view output.

Input Description

Input item Description

Image

The image used for detecting an edge point.

Alignment Parameter Group

This Step is used to adjust the pose of the ROI synchronously based on the pose transformation of the target object.

Parameter Description

Parameter Description

ROI settings

You can draw a rectangular ROI, and a column of pixels from its center is extracted for edge point detection.

See 2D ROI Settings to learn how to set and adjust the ROI.

Filter window size

This parameter specifies the window size used for filtering along the direction of the extracted column of pixels . Filtering can reduce noise and improve the stability of edge detection results.

Gray value change threshold

An edge point is detected in an extracted pixel column only if the gray value change between adjacent pixels at the edge is greater than or equal to this threshold. A properly set parameter filters out weak edges and noise.

Edge polarity

This parameter specifies the direction of the gray value change at the edge.

Value list:

  • Dark to light: Detects edges where gray value change from low to high, visually transitioning from dark to light.

  • Light to Dark: Detects edges where gray value change from high to low, visually transitioning from light to dark.

  • Any: No restriction on the direction of gray value change at the edge, detecting both.

Output Description

Select the output item(s) to add the output port(s) to the Step, and the corresponding data will be output after the Step is run. You can select the output according to the actual measurement requirements.

If you select an expandable output item, you should expand it by clicking ▶, and then set the Lower limit and Upper limit values to determine the acceptable range. If the output value falls within the acceptable range, the measurement item is judged as passing (OK), or else it is judged as failing (NG).
Output item Description

Edge Point

The detected edge point.

Edge Point X

The X coordinate of the edge point.

Edge Point Y

The Y coordinate of the edge point.

Troubleshooting

  • For common errors, see Error Code List.

  • If the error code is inconsistent with the error message, please contact Technical Support for help.

CV-W8501

Error: Invalid ROI settings.

Possible cause: The size of the ROI is too large, more than twice the size of the image.

Solution: Reset the ROI to ensure that it is of a proper size.

CV-W8502

Error: The set “Filter Window Size” value is outside of the valid range.

Solution: Make sure the parameter value is within 0–100.

CV-W8503

Error: The set “Gray Value Change Threshold” value is outside of the valid range.

Solution: Make sure the parameter value is within 0–255.

CV-W8507

Error: The set “Edge Polarity” is invalid.

Solution: Select valid edge polarity from the drop-down list.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.