Mask Logical Operation

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

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 and Output

Input

Input ports Data type Description

First Masks

Image/ColorMask[]

The first mask list.

Second Masks

Image/ColorMask[]

The second mask list with the same image size.

Output

Output ports Data type Description

Output Masks

Image/ColorMask[]

The mask list produced by logical operations.

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.

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.