Learning Contextual Probabilistic Pixel Sampling Templates For Pixel Selection In Medical Image Registration