graph cut segmentation python opencv