source and fig to segmentation