deformationField function

Calculate the deformation field for a transformation