extract_edges_after_segmentation