Filter

You are viewing an old version of the documentation. You can switch to the documentation of the latest version by clicking the top-right corner of the page.

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

filter input and output

Parameters

Ports Settings

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.

Reverse Bool List

Default setting: Unselected.

Description:

  • Unselected: Elements with a value of “False” in the input Boolean list will be filtered.

  • Selected: Elements with a value of “True” in the input Boolean list will be filtered.

Examples:

The input data is shown below.

filter filter input 1
filter filter input 2

When Reverse Bool List is unselected, elements with a value of “False” have been filtered, as shown below.

filter filter false

When Reverse Bool List is selected, elements with a value of “True” have been filtered, as shown below.

filter filter true

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.