5.3   Accuracy

The internal refinement algorithm has a maximum achievable accuracy. This accuracy limitation is due to numerical constraints linked to the internal processing of data and variables. The maximum error is at around 1e-3 (or 0.1%), but can be practiced at around 1e-7 times the size (diameter) of the model, or 0.00001%. Note that this is the maximum accuracy that can be achieved if all the conditions are perfect. The model size affects the (absolute) accuracy because coordinates are stored as float values. This is one reason why the accuracy is relative to the model size. For example, if the scale of the model and the scenes is changed (e.g., by multiplying all model and scene coordinates with the factor 1.000.000, the absolute accuracy would also change by the factor 1.000.000). In contrast, the accuracy in relation to the model diameter would remain the same. The following features can affect the accuracy:
Shape of the model:
Some models have shapes which allow certain degrees of freedom for the pose. For example, planar objects can translate and rotate on a scene plane without changing the score too much. Note that sometimes this can be avoided by using edge-supported surface-based matching. This applies to all self-similar or symmetric shapes: Cylinders, spheres, planar objects etc.
Visible part of the object instance:
Even if the shape of the object is suitable, for example, in the case of a box, it can happen that only a small part of the object is visible, for instance, a small part of one side of the box. In this case, the translation and rotation inside that one box side cannot be properly determined. Ideally, several orthogonal sides of the object instance should be visible, so that the translation (and rotation) are fixed in all directions.
Number of scene points that lie on the model:
If only few scene points represent an instance of the object, no high accuracy can be achieved.
Point noise from the sensor:
More accurate input points will also lead to a more accurate pose. Note for example that time-of-flight sensors can cause noise deviations up to 1 cm, whereas sheet-of-light setups might lead to 0.1 mm noise; so, coarsely, there are 2 orders of magnitude of difference.
Object position in scene coordinates:
The further away an instance is from the origin of the scene, the smaller the possible accuracy is. For example, if an object is 1.000 times its diameter away from the origin of the scene, the accuracy drops by a factor of up to 1.000. This is because the coordinates are stored as float values, and they will lose some of their significant bits. It is always advisable to keep the scene origin at about 10-100 times the diameter of the model away from its instances at most.
Refinement sampling distance:
The sampling distance of the model in the refinement step also affects the final accuracy. It can be set using the generic parameter 'pose_ref_rel_sampling_distance' of the operator create_surface_model. With a smaller value, the accuracy can improve, especially if the model contains parts with high curvature or high frequency. It is possible to inspect the impact on the model used in the refinement step using the operator get_surface_model_param with the parameter 'sampled_pose_refinement'. The sampled point cloud should represent the object, including its fine structures. Parts that are not represented by this point cloud are not used during the refinement.