Simplify segmentation of samples