Remove Model-Matched Points With Normals

Description

This operator is used to remove the point cloud corresponding to the model from a scene point cloud based on existing matching results.

The operator transforms the uploaded model point cloud to the coordinate system of the scene point cloud according to the input matching results; then, it uses a specific method to find points in the scene that overlap or are close to the transformed model point cloud and removes them. It supports reverse operation, i.e., not removing model points but removing all other points in the scene, thereby retaining only the point cloud parts matched with the model.

Overview

Transforms the model point cloud to the scene coordinate system based on template matching results and removes the point cloud of identified objects from the scene.

Scenarios

Recognition and Picking: After successfully recognizing and picking an object, this operator can be used to remove it from the scene point cloud.

Inputs and Outputs

Inputs

Matching results: A list consisting of one or more matching results.

Scene Point Cloud: The scene point cloud or point cloud list to be processed.

Outputs

Point cloud after removing matched points: The remaining scene point cloud or list of point clouds after the removal operation.

Parameters

Initialization Parameters

Model Point Cloud File

Description

Uploads a PLY-format model point cloud file, used to remove the corresponding points from the scene.

Tuning Instructions

A model file must be uploaded; if the file does not exist or the path is incorrect, an error will be reported.

Parameter Range

Values/Range:

  • .ply

Enable Downsampling

Description

Whether to perform downsampling on the uploaded point cloud model.

Tuning Instructions

  • Enabled (Default): Recommended when the point cloud model has many points; reduces point cloud density to speed up operator execution.

  • Disabled: The model participates in calculation with the original number of points, offering the highest precision but increasing calculation time.

Parameter Range

Default: True

Voxel Downsampling Size

Description

Sets the side length of the downsampling voxel (small cube); only one representative point is kept within each voxel, thereby reducing the total number of points in the point cloud.

Tuning Instructions

  • Increase this value: Fewer model points, faster processing speed, but may cause a larger difference between the removed point cloud and the actual model.

  • Decrease this value: Finer downsampling, better preservation of model shape, more precise removal, but calculation time will increase.

Parameter Range

[0, 10000], Default value: 2, Unit: mm

Parameter Range

Values/Range: [0, 10000]

Default: 2.0

Unit: mm

Run Parameters

Removal Method

Description

Selects the method used to find and remove the matched point cloud.

Tuning Instructions

  • Hash Mapping (Default): Maps the coordinates of the model point cloud and scene point cloud to hash values via a hash algorithm. Points with similar coordinates will receive the same hash value, and overlapping points are quickly removed by comparing hash values. This method is usually fast and suitable for processing large-scale point clouds.

  • Based on Matching Response Points: Uses each model point transformed into the scene as a center to find and remove scene points within a specified "Search Radius", allowing for more intuitive control of the removal range.

Parameter Range

Values/Range:

  • Hash Mapping

  • Based on Matching Response Points

Default: Hash Mapping

Search Radius

Description

*(Valid only when "Removal Method" is Based on Matching Response Points)

  • Defines the radius of the spherical search range for finding scene points around each model point.

Tuning Instructions

  • Increase this value: The larger the value, the larger the removed area. If you want to remove points in a wider range around the model, you can appropriately increase this value.

  • Decrease this value: If you want to precisely remove only points touching the model surface, you can set a smaller value.

Parameter Range

[1, 10000], Default value: 10, Unit: mm

Parameter Range

Values/Range: [0, 10000]

Default: 10.0

Unit: mm

Voxel Step

Description

The side length of the voxel (small cube) used to match overlapping points.

Tuning Instructions

  • Increase this value: The voxel grid becomes larger. Even if two points are at a certain distance, they may be considered overlapping points and removed, which may cause the removal range to be larger than the actual boundary of the target point cloud.

  • Decrease this value: The voxel grid becomes smaller, and the matching conditions become stricter. Only very close points will be removed. This makes the removal range more precise, but some points that should be removed might be missed due to point cloud noise or tiny deviations.

Parameter Range

[1, 10000], Default value: 15, Unit: mm

Parameter Range

Values/Range: [1, 10000]

Default: 15

Unit: mm

Invert Removal

Description

Inverts the logic of the operator’s point cloud removal.

Tuning Instructions

  • Disabled (Default): Normal mode — removes the point cloud that matches the model from the scene.

  • Enabled: Reverse mode — keeps the point cloud that matches the model in the scene and removes everything else, equivalent to "cutting out" the matched object from the scene.

Parameter Range

Default: False

Utilize Clustering Poses

Description

Optimizes for matching results that have undergone clustering.

Tuning Instructions

If the input matching results are generated after clustering multiple original matching results, this option should be enabled; if the input is independent matching poses, keep it disabled.

Parameter Range

Default: False

Merge Input Point Clouds

Description

When the input scene point cloud is a list of point clouds, controls whether to merge them into a single point cloud before processing.

Tuning Instructions

  • Disabled (Default): Processes each point cloud in the input list individually and outputs a result list.

  • Enabled: Merges all input point clouds into one, then performs the removal operation once.

Parameter Range

Default: False