Calc Midpoint of Specified Side of Rectangle

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.

If you need to use this Step, please click Help  About Plugins in the menu bar, and enable the "step_trajectory" plugin in the window.

Function

This Step calculates the midpoint of the specified side of the bounding rectangle of each non-zero pixel region in the mask image.

Usage Scenario

This Step is usually used in scenarios such as hatch door/glass gluing to calculate the starting point of the gluing path.

Input and Output

Input

Input port Data type Description

Rectangle Region

Image/Color/Mask

Non-zero pixel regions in the mask image input by this port will have bounding rectangles calculated.

Output

Output port Data type Description

3D Midpoint

Pose[]

Midpoints of the specified sides of the bounding rectangles.

Parameter Description

Parameter Description

Specified Side

Parameter description: Calculate the midpoint of the specified side.

Values:

  • Top: Top side

  • Bottom: Bottom side

  • Left: Left side

  • Right: Right side

Default value: Left

Z Value of Midpoint

Parameter description: The Z value of the midpoint in the camera frame.

Default value: 2000.000 mm

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.