4.4.2   Points to Consider for Edge-Supported Surface-Based Matching Only


Edge-Supported Surface-Based Matching (in addition to the points above)

Model normals If model normals do not point inwards, invert the model normals by setting the parameter 'model_invert_normals' of create_surface_model to 'true'. As the scene normals are calculated from the 2D-mappings (from HALCON 20.11 onwards), the scene normals should point inwards anyway. Else, set the parameter 'invert_scene_normals' of find_surface_model to 'true' (from HALCON 19.11 onwards) or reconsider the consistency of the used 2D-mapping.

Score If only low scores are returned check the following potential causes:
  • Check if 3D edges are computed in a suitable way. 3D edges can be accessed by get_surface_matching_result with the parameter 'sampled_3d_edges'. If 3D edges can not be computed adequately due to the underlying noise, they can also be determined with edges_object_model_3d and filtered by a suitable method. Then, the 3D edges can be set as a generic parameter in find_surface_model, i.e., with '3d_edges' as generic parameter and the filtered edges as its value.
  • Retrieve the results of the matching using get_surface_matching_result and check the values for 'score_surface', 'score_3d_edges' and 'score_2d_edges'.
    • If the 'score_3d_edges' is very low, increase the value of the parameter 'pose_ref_scoring_dist_rel' / 'pose_ref_scoring_dist_abs' when calling find_surface_model. This can be due to the fact that 3D edges of the objects in the scene are slightly deformed or the point cloud is slightly noisy close to 3D edges.
    • If the 'score_2d_edges' is very low, check if the set camera parameters and camera pose are correct. In order to do so, project the model into the 2D intensity image. In case the objects in the scene are slightly deformed, increase the value of the parameter 'max_deformation' of find_surface_model_image.