Bottom-up segmentation