Measure Edge-to-Edge Width

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

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Description

Use this Step to detect a pair of edge points in the image and measure the distance between them as the edge-to-edge width.

Usage Scenario

This Step is mainly used in scenarios where precise measurement of distances within objects or between multiple parts is required, such as detecting component gaps and measuring package dimensions.

Input and Output

Input

Input ports Data type Description

Image

Image

The image used for detecting edge point pairs.

Alignment Parameter Group

Pose2D

Used to adjust the target region’s pose in sync with the target object’s pose changes.

Output

Output ports Data type Description

Edge-to-Edge Line

Shape2D/Line

A line connecting the detected pair of edge points, oriented from the upper edge to the lower edge.

Edge-to-Edge Width

Number

The distance between the detected pair of edge points.

Parameter Description

Parameter Description

ROI Settings

You can draw a rectangular ROI, and the system will extract multiple columns of pixels according to the caliper settings. The detected edge point pairs in each column of pixels will be used for width measurement.

Filter Window Size

Specify the window size to be used when filtering a column of pixels in its direction. Filtering can reduce noise and improve the stability of edge detection results.

Gray Value Change Threshold

In the extracted column of pixels, edge points are detected only if the gray value change between adjacent pixels at an edge is greater than or equal to this threshold.

Expected Edge-to-Edge Width

This parameter specifies the expected distance between two edge points. When there are multiple eligible edge point pairs, the edge point pair closest to the expected width is selected to calculate the final edge-to-edge width.

Upper Edge Polarity / Lower Edge Polarity

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

Value list:

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

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

  • Any: does not limit the direction of gray value change of the edge.

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.