segmentation and 3d linking