add segmentation code and input image