4.4.1   Points to Consider for Both Surface-Based Matching and Edge-Supported Surface-Based Matching


Surface-Based Matching and Edge-Supported Surface-Based Matching

Normal directions see section “Normals”

Shape of the model see section “Shape of the Model”

Duplicate points see section “Duplicate Points”

Scaling Use read_object_model_3d with correct scaling.

Sampling of the model Check the sampling of the model with the following code:

get_surface_model_param (SurfaceModelID, 'sampled_model', SampledModel)
visualize_object_model_3d(WindowHandle, SampledModel, [], [], [], 
                          [], [], [], [], PoseOut)
    
Make sure the essential parts of the object are still represented in the surface model.

Sampling of the scene Check the sampling of the scene with the following code:

  
get_surface_matching_result (SurfaceMatchingResultID, 'sampled_scene', 
                             0, SampledScene)
visualize_object_model_3d(WindowHandle, SampledScene, [], [], [], 
                          [], [], [], [], PoseOut)
    
The object should be covered by at least 150 scene points. In case that fine details of the model should be considered, the sampling distance needs to be lowered. When long and thin objects need to be matched, the sampling distance must be adapted such that enough information is available in the shortest object extension (see figure 5.1).

Score If only low scores are returned check the following potential causes:
  • If the model contains structures on the inside that cannot be seen, those invisible structures should be removed.
  • If the model normals do not point approximately in the same direction as the scene normals, they should be adapted (see section “Normals”).
  • The model needs to fit the objects in the scene.
  • The model is sampled a second time for the refinement. This sampling can be controlled by the parameter value 'pose_ref_rel_sampling_distance'. In order to obtain more accurate results, this parameter can be set to a lower value. Its default value is 0.01.
  • If only few of the object instance is visible for the camera, use the view-based score, which considers only that part of an object, that can actually be seen from the camera viewpoint.