Improving Generalization of Medical Image Registration Foundation Model