Mask Logical Operation

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 is used to perform logical operations on two mask lists of the same size, thereby merging masks and extracting or removing the common regions.

Usage Scenario

This Step is generally used for mask logical operations. No fixed usage scenarios.

Input Description

Input item Description

First Masks

The first mask list.

Second Masks

The second mask list with the same image size.

Parameter Description

Logical Operation Settings

Parameter Description

Logical Operation Type

Parameter description: This parameter specifies the type of mask logical operation.

Value list: AND, OR, XOR, NOT

  • AND: This method extracts the common regions of the two mask lists.

  • OR: This method merges the two mask lists.

  • XOR: This method removes the common regions from the two mask lists.

  • NOT: This method inverts an input mask list, turning the black part (usually the background) into white and the white part (usually the contour or edges of the object) into black.

Mask Usage Settings

Parameter Description

Mask Correspondence

Parameter description: This parameter specifies the correspondence between masks in the two input mask lists.

Value list: FirstToAll, OneToOne

  • FirstToAll: Only the first mask from the first list is applied to all masks in the second list.

  • OneToOne: All masks from the second list are applied in one-to-one correspondence with those in the first list.

Output Description

Output item Description

Output Masks

The mask list produced by logical operations.

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.