Calc Areas of Masks

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 calculates the areas of multiple mask images.

Usage Scenario

This Step is used for subsequent judgment or processing based on the mask area, such as sorting by area values or filtering.

This Step usually follows a mask processing Step. Please select the succeeding Step according to the actual requirement.

Input and Output

Input

Input port Data type Description

Mask Images

Image/Color/Mask[]

List of mask images used to calculate the mask area

Output

Output port Data type Description

Measured Area

Number[]

Contains a list of values for the area of each mask.

Parameter Description

Parameter Description

Area Calculation Settings

Description: This parameter is used to set the method for calculating the area.

Value list: FilledContour, NonZeroPixel

  • FilledContour: The contour filling method, which calculates the area based on the outer contour of the non-zero region in the mask image. This is used to extract the outer contour of the non-zero region and calculate the filling area within this contour.

  • NonZeroPixel: Non-zero pixel counting. The area is calculated based on the number of non-zero pixels in the mask image, which is the total area of the actual valid pixels.

Default value: NonZeroPixel

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.