A tree-structured Markov random field model for Bayesian image segmentation