Updated to automatically compute the inverse vector field based on registration.