Spatial distance dependent Chinese restaurant processes for image segmentation