Filtering Operations¶
There are many different combinations of filtering operations. In this section, Filter by threshold and Filter by label are used as examples and can be applied flexibly according to actual needs. The possible filtering operations include, but are not limited to point clouds, poses and labels. This section takes point clouds as an example.
The procedure Filter by Threshold
The procedure Filter by Label
Process Description¶
Filtering by label
Validate Labels and Output Flags step and Label File generate an array of flags with the same number of tags as the input, with the values
True
andFalse
.The Filter step keeps the input with the flag
True
and filters out the input with the flagFalse
; if Reverse Bool List is checked, the result is reversed.
Filtering by threshold
The Stratify Values by Thresholds step sorts the input array of values according to a threshold value. Less than the threshold is the previous category label and greater than or equal to the threshold is the next category label.
Use the Filtering by label step combination to filter the labels and achieve the threshold filtering effect.
Example of How to Achieve The Effect¶
Input point cloud
Process flags
Here the threshold is 2000
and the labels are ng, ok. The required label is ok .
Retain the point cloud class with the flag True
.
Resulting point cloud