Remove Overlapped Polygons

You are currently viewing the documentation for version 1.8.1. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

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

Function

This Step filters out invalid polygons that overlap or are outside the masks.

Usage Scenario

It should be used with the Step Remove Polygons outside Mask to filter out polygons that do not represent the actual contour of the object.

Input and Output

remove overlapped polygons input and output

Parameters

Mask Settings

Usage of Input Masks

Default value: SingleMask

List of values: SingleMask (one mask applies to all polygons), CorrespondingMasks (One mask applies to one polygon)

Instruction: To change the way the mask is used. You can choose to apply one mask to all polygons or apply different masks to each polygon accordingly.

Inspection Criteria

Min Out-Of-Bound Area Ratio (0–1.0)

Default value: 0.4500

Instruction: The mask of the box is translated by one-half of the length and one-half of the width along the positive and negative directions of the long and short axes. The ratio of the area of the shifted mask beyond the highest layer of the mask to the area of the mask itself will be calculated, and if it is greater than the threshold, the box is considered to be on the boundary of the highest layer. Generally speaking, if the rectangular box mask is located at the corners of the highest layer mask, as long as the mask is shifted by one-half of the length or width in the direction of removing the highest layer mask, the ratio should be 0.5, so the minimum threshold default value is 0.45 . When the value is increased, generally speaking, it exceeds 0.5, and all polygons will be filtered out. This Step will give priority to the mask of the box at the corner point, so the carton mask area at the border needs to be determined first.

Max Out-Of-Bound Area Ratio (0–1.0)

Default value: 0.6000

Instruction: The mask of the box is translated by one-half length and one-half width along the positive and negative directions of the long and short axes. The ratio of the area of the shifted mask beyond the highest layer of the mask to the area of the mask itself will be calculated, and if it is less than the threshold, the box is considered to be on the boundary of the highest layer. Generally speaking, if the rectangular box mask is located at the corners of the highest layer mask, as long as the mask is shifted by one-half of the length or width in the direction of removing the highest layer mask, the ratio should be 0.5, so the default maximum threshold is 0.6. This Step will give priority to the mask of the box at the corner point, so the carton mask area at the border needs to be determined first.

Max Overlap Ratio (0–1.0)

Default value: 0.2000

Instruction: If the overlap ratio of two polygons exceeds the threshold. one of the polygons should be filtered out.

Output Strategy

Position Restraint

Default value: AtCorners

List of values: AtCorners, None

Instruction: As shown below, the left side is the output image under the default setting, and the right side is the output image when the parameter is set to None.

remove overlapped polygons position limit

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.