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](../../../../../_images/filter.png)
Sample Scenario
This Step filters a data array based on a Boolean list. This Step usually follows Steps that output Boolean lists, including Dichotomize Values by Threshold, Validate Labels and Output Flags, Validate Poses by Included Angle to Reference Direction, Validate Point Clouds, etc.
Input and Output
![../../../../../_images/input_output_13.png](../../../../../_images/input_output_13.png)
Parameters
Ports Settings
- Port Number
Default Value: 1Value Range: 1 ~ 15Instruction: This parameter indicates the number of the input and output ports.- Operation Layer
Default Value: 0Value Range: 0 ~ 14Instruction: If the operation layer is0
, the operation will perform on every elements in the lists.
- Reverse Bool List
Default Value: FalseList of Values: True, FalseInstruction: When checked asFalse
, the items with False in input BoolList will be filtered, and return items with True; When checked asTrue
, the items with True in input BoolList will be filtered, and returen items with False.