A Multi-layer Approach to Segmentation