Detect N Largest Rectangles in Mask

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 detects the first N inscribed rectangles with the largest area in the mask. The value of N can be set in the parameter.

Usage Scenario

This Step is a general mask calculation Step. This Step has no fixed usage scenarios.

Input and Output

Input

Input port Data type Description

Image

Image/Color/Mask

Masks input by this port will have the largest inscribed rectangles detected.

Output

Output port Data type Description

Largest Inscribed Rectangles

Image/Color[]

Top N largest inscribed rectangles detected from the masks.

Parameter Description

Traversation Settings

Parameter Description

Angle Step (0-360)

Parameter description: The rotation step in the direction of the long axis of the rectangle when detecting the largest inscribed rectangle. The smaller the value, the higher the detection accuracy and the lower the detection speed.

Default value: 10 °

Translation Step

Parameter description: The step size of the rectangle center translation for detecting an inscribed rectangle. The smaller the value, the higher the detection accuracy and the lower the detection speed.

Default value: 10 px

Rectangle Shape Settings

Parameter Description

Aspect Threshold

Parameter description: Maximum aspect ratio of Rectangles. Rectangles with aspect ratios greater than this threshold will be discarded.

Default value: 3.000

Min Area

Parameter description: Minimum area of Rectangles. Rectangles with areas smaller than this threshold will be discarded.

Default value: 500 px

Max Area

Parameter description: Maximum area of Rectangles. Rectangles with areas larger than this threshold will be discarded.

Default value: 50000 px

Rectangle NMS Settings

Parameter Description

Top N Largest Area

Parameter description: Number of largest area rectangles to preserve.

Default value: 5

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.