Gravar-mail: Constrained distance transforms for spatial atlas registration