Spatial segmentation via the Generalized Gibbs Sampler