Text this: Deformation analysis by an improved similarity transformation