Segmentation of mid-ocean ridges