Skip to main content

Simple watershed and agglomeration for affinity graphs.

Project description

Build Status PyPI version

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

Install c++ dependencies:

sudo apt install libboost-dev

Install from pipy

pip install waterzed

install manually

pip install -r requirements.txt
python setup.py install

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)

Development

Release to pypi

We can only release code and compile in the installation machine.

python setup.py sdist
twine upload dist/my-new-wheel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

waterz-0.9.0-cp37-cp37m-manylinux2010_x86_64.whl (199.2 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

waterz-0.9.0-cp37-cp37m-manylinux1_i686.whl (168.0 kB view hashes)

Uploaded CPython 3.7m

waterz-0.9.0-cp36-cp36m-manylinux2010_x86_64.whl (161.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

waterz-0.9.0-cp36-cp36m-manylinux1_i686.whl (166.8 kB view hashes)

Uploaded CPython 3.6m

waterz-0.9.0-cp35-cp35m-manylinux2010_x86_64.whl (195.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

waterz-0.9.0-cp35-cp35m-manylinux1_x86_64.whl (165.9 kB view hashes)

Uploaded CPython 3.5m

waterz-0.9.0-cp35-cp35m-manylinux1_i686.whl (164.8 kB view hashes)

Uploaded CPython 3.5m

waterz-0.9.0-cp34-cp34m-manylinux2010_x86_64.whl (195.1 kB view hashes)

Uploaded CPython 3.4m manylinux: glibc 2.12+ x86-64

waterz-0.9.0-cp34-cp34m-manylinux1_x86_64.whl (162.8 kB view hashes)

Uploaded CPython 3.4m

waterz-0.9.0-cp34-cp34m-manylinux1_i686.whl (163.6 kB view hashes)

Uploaded CPython 3.4m

waterz-0.9.0-cp27-cp27mu-manylinux2010_x86_64.whl (218.7 kB view hashes)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

waterz-0.9.0-cp27-cp27mu-manylinux1_x86_64.whl (181.4 kB view hashes)

Uploaded CPython 2.7mu

waterz-0.9.0-cp27-cp27mu-manylinux1_i686.whl (180.6 kB view hashes)

Uploaded CPython 2.7mu

waterz-0.9.0-cp27-cp27m-manylinux2010_x86_64.whl (218.7 kB view hashes)

Uploaded CPython 2.7m manylinux: glibc 2.12+ x86-64

waterz-0.9.0-cp27-cp27m-manylinux1_x86_64.whl (181.4 kB view hashes)

Uploaded CPython 2.7m

waterz-0.9.0-cp27-cp27m-manylinux1_i686.whl (180.7 kB view hashes)

Uploaded CPython 2.7m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page