MR to ultrasound image registration with segmentation-based learning for HDR prostate brachytherapy.