Parameter-Free Elastic Deformation Approach for 2D and 3D Registration Using Prescribed Displacements