Detect and Measure Oblong Hole

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

Function

This Step is used to detect and measure oblong hole in the input image.

Usage Scenario

This Step is used to detect the pixel-wise positions and sizes of oblong holes in images to facilitate subsequent calculation of physical dimensions in measurement scenarios.

Input and Output

detect and measure oblong hole input and output

Parameter Description

ROI

Default value: 0

Instruction: Click Measurement Mode in the toolbar to enable the measurement mode and then click this Step and select an ROI. The select frame is in the upper left corner of the image. It is recommended to zoom out the image first and hover the mouse on the frame. When the arrow icon becomes the hand icon, you can drag the select frame and adjust the frame size.

detect and measure oblong hole set roi 1

Once the selection is completed, the values will be displayed in the ROI parameters, as shown below.

detect and measure oblong hole set roi 2
Position and Orientation Correction

Default value: Unselected.

Description: If this option is selected, the ROI will be adjusted to the position and orientation that fits the object in the image according to the input 2D transformation.

Canny Edge Detection Low Threshold

Default value: 40

Description: Edges with gradients greater than 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. The Soble operator is used to calculate the gradients, and the maximum of gradients is 1440.

Canny Edge Detection High Threshold

Default value: 100

Description: Edges with gradients greater than 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. The Soble operator is used to calculate the gradients, and the maximum of gradients is 1440.

Sigma of Gaussian Filter

Default value: 1.0

Description: This parameter is used to filter the image vertically within the edge detection frames. The recommended set value is 1.

Edge Transition Type

Default value: Both.

Value list: White To Black, Black To White, and Both.

Description: This parameter specifies 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.

  • White to Black: The grayscale changes from white to black in the frames will be considered points on object edges.

  • Black to White: The grayscale changes from black to white in the frames will be considered points on object edges.

  • Both: The grayscale changes both from black to white and from white to black in the frames will be considered points on object edges.

Edge Selection

Default value: First.

Options: First, Second, Last, and All.

Description: In each edge detection frame, this parameter sets which detected edge point should be selected as the edge point for fitting the complete edges.

First: The first point from top to bottom in the frame will be selected for fitting.

  • Second: The second point from top to bottom in the frame will be selected for fitting.

  • Last: The last point from top to bottom in the frame will be selected for fitting.

  • All: All the points in the frame will be selected for fitting.

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.