Learned Deformation Stability in Convolutional Neural Networks