Probabilistic Segmentation Applied to an Assembly Task