Physics-driven variational methods for computer vision and shape-based imaging