A unified framework for cross-modality multi-atlas segmentation of brain MRI