This is a hugely studied field in the area of medical image processing. Goes by name of (large) diffeomorphic registration or diffeomorphic mapping https://en.m.wikipedia.org/wiki/Large_deformation_diffeomorphic_metric_mapping