Adaptive Registration and Atlas Based Bayesian Segmentation