Stochastic optimization with randomized smoothing for image registration