Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 568 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 568 Bytes

waterz

Pronounced water-zed. A simple watershed and region agglomeration library for affinity graphs.

Based on the watershed implementation of Aleksandar Zlateski and Chandan Singh.

Installation

python setup.py install

Requires numpy and cython.

Usage

import waterz
import numpy as np

# affinities is a [3,depth,height,width] numpy array of float32
affinities = ...

thresholds = [0, 100, 200]

segmentations = waterz.agglomerate(affinities, thresholds)