Registration of non-rigidly deforming objects