Adaptive Bayesian segmentation of color images