The error sources described in the introduction implies the we have to search for the position but also for some shape transformation.
The allowed transformations of the detail are all linear axis transformations which include translation, rotation, scaling and sharing.
The problem is to define appropriate centre and directions for those transformations. This is feasible for shapes presenting preferential directions as the tracks and has shown high efficiency in practice.
For other shapes as the wheels, the 'best transformation' (in the least mean square sense) is computed and applied.