Doc euclidean segmentation