Text this: A contrario selection of optimal partitions for image segmentation