Semi-weakly-supervised neural network training for medical image registration