From cognitive psychology to image segmentation: A change of perspective