Filter

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.

../../../../../_images/filter.png

Usage Scenario

This Step filters a data array based on 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, Validate Point Clouds, etc.

Input and Output

../../../../../_images/input_output_13.png

Parameter Description

Ports Settings

Port Number
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: Unselect
Description:
  • Unselect: Elements with a value of “False” in the input Boolean list will be filtered.

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

Example:

The input input data is shown below.

../../../../../_images/filter_input_1.png
../../../../../_images/filter_input_2.png

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

../../../../../_images/filter_false.png

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

../../../../../_images/filter_true.png