I will present EUSIPCO 2016 paper that describes how to use the Bayesian framework to avoid the discrete optimization in segmentation.