5.1.2   Scene

Sampling distance:
The larger the sampling distance, the smaller the amount of data points and thus the faster the object localization process. However, the sampling distance should be set such that at least 150 points are distributed on the object. Moreover, in case smaller or thinner shapes are to be considered, the sampling distance should be set such that enough points are distributed over the smaller or thinner shape as well. For instance, if a long and thin object should be localized, the sampling distance should be set such that it is at least one fourth of the smaller extension of the object.
Shape of the model:
In case of flat objects, the optimization process will take longer. In such cases, it is recommended to segment the scene and to apply the surface matching in a loop of the segmented components.
Disable 3D edge alignment:
When applying surface-based matching with surface information, 3D and 2D edge information, 3D edge alignment can be disabled, which can speed up the matching, especially if handling noisy point clouds. This can be done by setting 'use_3d_edges' to be 'false'.
Use XYZ-mappings:
XYZ-mapping-based processing is much faster than point cloud processing due to the already available information structure or order. Note that you can also enhance the preprocessing of your 3D data, by applying it to the XYZ-images.
Duplicate points:
Duplicate points lead to slower processing. The presence of duplicate points can be checked and removed as described in section “Duplicate Points”.
Number of points:
If there are a lot of scene points that lie on the object instance and/or the point cloud is very dense, it is recommended to increase the value set for the generic parameter 'pose_ref_sub_sampling' (its default value is 2, i.e., every second scene point is used in the dense pose refinement).
Remove outliers:
Use select_points_object_model_3d with the parameter 'num_neighbors_fast' to remove outliers.
Remove noise:
Noise can be removed with one of the following approaches:
Remove background:
Generally, the fewer the points to be processed, the faster the matching. In most cases, an adequate preprocessing can speed up the application significantly. Such a preprocessing can be applied on the XYZ-mappings or on the point cloud. For further information see chapter “Background Removal”.