Detect Edges

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.

Function

This Step extracts object edges from the input 2D image to highlight their contour features for subsequent analysis or processing.

Usage Scenario

This Step is suitable for scenarios where object edges need to be extracted from images, such as object contour extraction, geometric fitting, edge positioning, etc. It is a general 2D image edge detection Step and has no fixed usage scenarios.

Input and Output

Input

Input port Data type Description

Original Image

Image

Input the raw 2D image to be detected at this port.

Output

Output port Data type Description

Processed Image

Image

Output edge-detected images from this port.

Parameter Description

Parameter Description

Segment Type

Description: This parameter is used to select a specific edge detector. The edge quality, noise immunity, and accuracy of different detectors vary, and you should select them according to actual requirements.

Value list: CannyDetector, EdgeDrawingDetector, SobelDetector

Default value: CannyDetector

CannyDetector

Description: This type of detector has strong noise suppression ability, high edge positioning accuracy, and can generate clear and continuous edges. It is suitable for scenarios with noise but clear edges.

  • Canny Low Threshold (1-255): This parameter is used to set the lower limit of the gradient of the weak edge. The default value is 50.

  • Canny High Threshold (1-255): This parameter is used to set the lower limit of the gradient for strong edges. The default value is 200.

Instruction: Edges with gradients above the high threshold are considered actual edges. Edges with gradients between high and low thresholds are considered actual edges only if they are connected to actual edges with gradients greater than the high threshold. Edges with gradients below the low threshold are ignored.

EdgeDrawingDetector

Description: This type of detector detects edges with strong continuity, which is suitable for scenarios that require high edge integrity and where coherent profiles need to be obtained.

SobelDetector

Description: This type of detector is fast at calculating and suitable for coarse edge locating in high-quality images and regular contours. The output edge is wide, providing continuous and clear visual effects when the image quality is good.

  • Threshold: This parameter is used to set the threshold for determining the pixel gradient. Pixels with gradient values greater than this threshold will be considered edge points. The default value is 50.

  • Kernel Size: This parameter is used to set the kernel size to be used by the Sobel operator to calculate gradients. The default value is 3.

Instruction: A smaller kernel size preserves more detail; a larger kernel size enhances smoothing and helps reduce noise, but may lead to a weakening of edge details.

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.