Exemple #1
0
def segment_coral(rgb_in, y_out):
    """rgb_in should be the path to an input image. Must be 8 bit.
    y_out is a path to the result blob tag image"""
    img_in = Image.open(rgb_in)
    img_out = segment(img_in)
    imsave(y_out, img_out)