Top Layer Point Cloud Filter
Description
This operator is used to filter out point clouds located at the "topmost layer" from the input list of point clouds, providing two different judgment methods:
-
Based on Highest Layer Height: Calculates the average height of all input point clouds on the Z-axis, then uses the average Z-value of the highest point cloud (or lowest, depending on the Z-axis orientation) as a baseline, offsetting downward (or upward) by half of the user-specified "Thickness" to form a height filtering threshold. All point clouds with an average Z-value above this threshold will be retained.
-
Based on Upper Points in ROI: This method assumes the input is point clouds processed by ROI. The operator calculates the average Z-value for each point cloud and offsets it upward (or downward) by half of the "Thickness" to obtain a Z-direction threshold. It then counts how many points in the entire scene have Z-values exceeding this threshold (i.e., located "above" the current target point cloud). If the number of these "upper" points exceeds the set "Upper Point Count Threshold", the target point cloud is considered occluded or not the topmost layer and is filtered out.
The main purpose of this operator is to avoid wrong-layer picking in multi-layer stacking or occluded scenarios, ensuring that only the topmost and easiest-to-operate targets are processed.
Scenarios
-
Avoid Wrong-Layer Picking: When objects may be stacked or partially overlapping, filter out the topmost object for picking.
-
Occlusion Judgment: (Specifically for the "Based on Upper Points in ROI" method) Determine whether the detected target is occluded by other objects.
-
Point Cloud Layering: Roughly layer the point clouds in the scene by height and extract the surface part.
Inputs and Outputs
Inputs |
Input Point Cloud: A list containing one or more point clouds. |
Outputs |
Filtered point cloud: A list containing only the point clouds identified as the highest layer. |
Parameters
Thickness
Description |
Object thickness; half of it is used as the Z offset for highest-layer selection or upper-point depth testing. |
Tuning Instructions |
Increasing it admits targets farther from the top height and moves the upper-point test plane farther away. |
Parameter Range |
[0, 2000], Default: 100.0, Unit: mm |
Parameter Range |
Values/Range: [0, 2000] Default: 100.0 Unit: mm |
Point Cloud Coordinate System Z-Axis Orientation
Description |
Specifies which Z direction is physically upward, controlling comparisons for the top layer and upper points. |
Tuning Instructions |
Choose “Up” when physical height increases with Z, or “Down” when it decreases; the wrong choice reverses layer selection. |
Parameter Range |
Options: Up, Down, Default: Up |
Parameter Range |
Values/Range:
Default: Up |
Judgment Method
Description |
“Based on Highest Layer Height” compares each cloud’s mean Z with the top mean Z; “Based on Upper Points in ROI” counts valid points above a test plane in the combined depth image. |
Tuning Instructions |
Use “Based on Highest Layer Height” for stable layer spacing, or “Based on Upper Points in ROI” to reject targets by occluding-point count. |
Parameter Range |
Options: Based on Highest Layer Height, Based on Upper Points in ROI, Default: Based on Highest Layer Height |
Parameter Range |
Values/Range:
Default: Based on Highest Layer Height |
Upper Point Count Threshold
Description |
Used only by “Based on Upper Points in ROI”; a target is kept when the upper-point count is below this threshold and removed when it reaches or exceeds it. |
Tuning Instructions |
Increase to retain targets with more upper points; decrease for stricter occlusion rejection. |
Parameter Range |
[0, 1000000], Default: 5000 |
Parameter Range |
Values/Range: [0, 1000000] Default: 5000 |