Exemple #1
0
def watershed_labels(labels, REG=10):
    """watershed to separate objects with concavity.
    Does not use intensity information but shape.
    """
    nlabels = label_watershed(labels.copy(), regmax=REG)
    nlabels[labels == 0] = 0
    return nlabels
Exemple #2
0
def watershed_labels(labels, REG=10):
    """watershed to separate objects with concavity.
    Does not use intensity information but shape.
    """
    return label_watershed(labels, regmax=REG)