Robust dynamical model for simultaneous registration and segmentation in a variational framework: A Bayesian approach