Filter Data by Boolean Value

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

Generic filtering for any array-like variant. It takes a Boolean array of True/False as criteria and outputs the values corresponding to True values in the Boolean array as a new array.

filter filter schematic

Usage Scenario

This Step filters a data array on the basis of a Boolean list. It usually follows Steps that output Boolean lists, including Dichotomize Values by Threshold, Validate Labels and Output Flags, Validate Poses by Included Angles to Reference Direction, and Validate Point Clouds.

Input and Output

Input

Input port Data type Description

Filter Criteria

Bool[]

List of Boolean values for filtering.

Unnamed

Abstract[]

List of data to be filtered.

Output

Output port Data type Description

Unnamed

Abstract[]

List of filtered data.

Parameter Description

Ports Settings

Parameter Description

Port Number (1–15)

Default setting: 1
Range: 1–15
Description: Customize the number of the ports.

Operation Layer

Default setting: 0
Range: 0–14
Description: If the operation layer is set to 0, the operation will be performed on every element in the list.

Parameter Description

Top Level

Default setting: Unselected.

Keep Only Data with Boolean Value as False

Default setting: Unselected.
Tuning instruction: When this parameter is unselected, the Step will filter out boolean values that are false. When this parameter is selected, the Step will filter out boolean values that are true.

Tuning Examples

The input data is shown below.

filter filter input 1

filter filter input 2

When this parameter is selected, the step will filter out data with a Boolean value of false.

filter filter false

When unselected, the step will filter out data with a Boolean value of true.

filter filter true

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.