コード例 #1
0
ファイル: segment_operation.py プロジェクト: t10823gm/CellTK
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
コード例 #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)