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
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)