The optimum displacement function for any pair of signatures is extracted using minimization of a functional defined as the weighted sum of the squared Euclidean distance between two signatures and a penalty term requiring smoothness of the displacement function.