2.2   Finding the Surface Model

Once the surface model of the object to be matched has been created with create_surface_model, you can use find_surface_model to look for the object in your scene. The scene is usually acquired by a 3D sensor, whereby certain requirements are put on the data (see chapter “Data Requirements”). A preprocessing step, used to remove the background (see chapter “Background Removal”) can enhance the performance significantly. Note that the workflows of the standard surface-based matching and the edge-supported surface-based matching are the same.

Generally the surface-based matching is performed in three main steps, which are carried out by find_surface_model:

  1. Approximate matching:
    The approximate poses of the instances of the surface model in the scene are searched. Point clouds are sampled and a subset of key points is defined. For each key point, the optimum pose of the surface model is computed under the assumption that the key point lies on the surface of the object. From all key points, the poses with the best scores are then selected and used as approximate poses.

  2. Sparse pose refinement:
    In this step, the approximate poses found in the previous step are refined by minimizing the distances between the sampled scene points and the planes of the model points. This increases the accuracy of the poses and the significance of the score value.

  3. Dense pose refinement:
    The poses found in the previous steps are accurately refined. This step works similar to the sparse pose refinement and minimizes the distances between all scene points and the planes of the closest model points.

Those three steps are explained in detail in the following subsections.

a) Scene point cloud b) Reduced scene (gray), sampled points (cyan)
and key points (yellow)

Figure 2.2: The scene, as it is acquired (a) and the point sets that are used for the different steps of the matching process (b). Note that in the second image the background has been filtered out, using the XYZ-mappings.