Process 2D Shapes

You are currently viewing the documentation for version 1.7.4. 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 processes the shapes in the input binary images by the specified method.

Usage Scenario

This Step is usually used to process object contours to facilitate various calculations in measurement scenarios.

Input and Output

For example, when Ellipse is selected, the input and output of this Step are shown as below.

process 2d shapes input and output

Parameter Description

Target Shape

Description: This parameter specifies the method to process the 2D image.

Value list: Convex, Ellipse, Circumcircle, Incircle, BoundingBox, CircumscribedRectangle, InscribedRectangle, and InnerCenter.

  • Convex: Generate a convex hull of the original shape.

  • Ellipse: Generate an ellipse with the same first-order moment and second-order moment as the original shape.

  • Circumcircle: Generate a minimum circumscribed circle of the original shape.

  • Incircle: Generate a maximum inscribed circle of the original shape.

  • BoundingBox: Generate a minimum bounding box with edges parallel to the image borders.

  • CircumscribedRectangle: Generate a minimal circumscribed rectangle of the original shape.

  • InscribedRectangle: Generate a maximum inscribed rectangle with edges parallel to the image borders.

  • InnerCenter: Generate a point that is closest to the center of gravity on the original shape’s skeleton.

Tuning recommendation: Please select a method according to the actual requirement.

Tuning Examples

Convex

When Convex is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes convex

Ellipse

When Ellipse is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes ellipse

Circumcircle

When Circumcircle is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes circumcircle

Incircle

When Incircle is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes incircle

BoundingBox

When BoundingBox is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes bounding box

CircumscribedRectangle

When CircumscribedRectangle is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes circumscribed rectangle

InscribedRectangle

When InscribedRectangle is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes inscribed rectangle

InnerCenter

When InnerCenter is selected as the Target Shape, the 2D shape before and after processing is shown below.

process 2d shapes inner center

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.