Simple watershed and agglomeration for affinity graphs.
Project description
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file waterz-0.9.0-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 199.2 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce8126e1437c3bc3f973aa0219f0d6d70ced5c0f5024aae0a5f6c65ab8de2762
|
|
| MD5 |
d3e55cdc5047c052f90ad1a87152761e
|
|
| BLAKE2b-256 |
692108c436d0c5d7715b3264b0e76d759d02843057a84d3d0845b6808d58c244
|
File details
Details for the file waterz-0.9.0-cp37-cp37m-manylinux1_i686.whl.
File metadata
- Download URL: waterz-0.9.0-cp37-cp37m-manylinux1_i686.whl
- Upload date:
- Size: 168.0 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf0e2f2f5bf521fa1b1846fcde52ead6972f5078529b55d6ef00b1d36372dd50
|
|
| MD5 |
c49de9757c0d234ef84ec5a004d9f1b5
|
|
| BLAKE2b-256 |
7611ca5d6813f86bd03c5194ddfadbc45a6c5712b35786061a54388b6007042f
|
File details
Details for the file waterz-0.9.0-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 161.8 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4d87b5cb1aabef495ebbd5abf08d2a75e83c9b48649d156c455a970701374f6
|
|
| MD5 |
698dbf078e011378a698733877609eb4
|
|
| BLAKE2b-256 |
8053a390f422081bf06685ecf0cdd67693bdfdc44e08868b7815dacf39b52de8
|
File details
Details for the file waterz-0.9.0-cp36-cp36m-manylinux1_i686.whl.
File metadata
- Download URL: waterz-0.9.0-cp36-cp36m-manylinux1_i686.whl
- Upload date:
- Size: 166.8 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0424a5a1261e1f783e6a30a592d3c78ee43fcee7292a0fc3c7d1d5090264a439
|
|
| MD5 |
5cc3f81fcd6594a71100e0c2f2e45ff1
|
|
| BLAKE2b-256 |
b108ba63fff956c13e74aba0cc217368b8eff7fdb083283de7c7c3ff29f4060e
|
File details
Details for the file waterz-0.9.0-cp35-cp35m-manylinux2010_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp35-cp35m-manylinux2010_x86_64.whl
- Upload date:
- Size: 195.7 kB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffcaa55d83da553dad5bd2ea6dcb2b36b03a5fb8f7b9c9d4f8bad8ae32bbbfb6
|
|
| MD5 |
ca74009cefbf12c9f08fa285a04f1741
|
|
| BLAKE2b-256 |
747c3e613c174773de3f12b3876dedce0f9a80ef19962e308706ae8853286308
|
File details
Details for the file waterz-0.9.0-cp35-cp35m-manylinux1_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 165.9 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5128349d444b2e6163eafe2456d10ae99beb939722a58d4a48ba9ff3a7bbbd03
|
|
| MD5 |
f71dff8bca5ff71f722a19b407328fc9
|
|
| BLAKE2b-256 |
15e39d6b47a9f08e886a8a55f51e6a4d7d5ec94e97994741af5b97543c50862a
|
File details
Details for the file waterz-0.9.0-cp35-cp35m-manylinux1_i686.whl.
File metadata
- Download URL: waterz-0.9.0-cp35-cp35m-manylinux1_i686.whl
- Upload date:
- Size: 164.8 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e656d307c84af4c5506d635fbda30fc4dc5a8a664c54d7aec52425cdf69cbb53
|
|
| MD5 |
2eec0717366ecfc7df25334f07cbb100
|
|
| BLAKE2b-256 |
470b47817be118c3d9bd29b0fa35cd3f16012a8132454a631546aaa22d38c865
|
File details
Details for the file waterz-0.9.0-cp34-cp34m-manylinux2010_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp34-cp34m-manylinux2010_x86_64.whl
- Upload date:
- Size: 195.1 kB
- Tags: CPython 3.4m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6cdd37f7aa03f39f30e5936c04d1e837f60d49b327831ee0ca29a4b30ef79b8
|
|
| MD5 |
86ca66851889717d668f293be162ac79
|
|
| BLAKE2b-256 |
021003c835599eedbf3f3a923320ffa7ef0518fd9a0a258fd1446d21bfb6bdb4
|
File details
Details for the file waterz-0.9.0-cp34-cp34m-manylinux1_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp34-cp34m-manylinux1_x86_64.whl
- Upload date:
- Size: 162.8 kB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa8641d5604bac6973f9aa52a043468ff2aebae9f4a50d04f7a51e790ceaff07
|
|
| MD5 |
9e73bd69b28a5f0c05bc352cb2a801c3
|
|
| BLAKE2b-256 |
af979b11a641e1544657a103fd9be91a4296a1b4fc2fa7cb065184a077e47ffd
|
File details
Details for the file waterz-0.9.0-cp34-cp34m-manylinux1_i686.whl.
File metadata
- Download URL: waterz-0.9.0-cp34-cp34m-manylinux1_i686.whl
- Upload date:
- Size: 163.6 kB
- Tags: CPython 3.4m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4a777bedfd0b9cb375fcce9d64939b9cdd2696e0169e1a06b52410dcb4bcc19
|
|
| MD5 |
4182b2ba0cfe995485077687babcee47
|
|
| BLAKE2b-256 |
ab2e5f575086e04c5c48e928a664c946afadf3d58127baaf7c7bf6a7180fcbcc
|
File details
Details for the file waterz-0.9.0-cp27-cp27mu-manylinux2010_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp27-cp27mu-manylinux2010_x86_64.whl
- Upload date:
- Size: 218.7 kB
- Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b71ffe6be371a06ace499a39077950a94fe5c12a51f389704147e6342b926c3
|
|
| MD5 |
a9d2f1d3253334e63f83587c14dca997
|
|
| BLAKE2b-256 |
7d7cc6d3d4628a2fe4f496615c636d70d7d4fef8bebad3898607fb6a27c20381
|
File details
Details for the file waterz-0.9.0-cp27-cp27mu-manylinux1_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp27-cp27mu-manylinux1_x86_64.whl
- Upload date:
- Size: 181.4 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
473b180ff3eaf0f4b59b8867a7234593a173f9f28b6ced2cd49ccef82548ede7
|
|
| MD5 |
d7efcc459da374b5ee80228256c5b12a
|
|
| BLAKE2b-256 |
2c387806e94e0940144ed09849ce05d59083b97116cf05dd62371c0132d086e6
|
File details
Details for the file waterz-0.9.0-cp27-cp27mu-manylinux1_i686.whl.
File metadata
- Download URL: waterz-0.9.0-cp27-cp27mu-manylinux1_i686.whl
- Upload date:
- Size: 180.6 kB
- Tags: CPython 2.7mu
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01ea8533a35e38e72a0432c08509f5c5da9d54baecc7be5d3aeb605c15ca334c
|
|
| MD5 |
dce886d1215f6c8de7ad77444039693d
|
|
| BLAKE2b-256 |
219c146a39430e65042b5c4110fd11b35ce8d744dbf4fc9b4fffaa90ffbc1d38
|
File details
Details for the file waterz-0.9.0-cp27-cp27m-manylinux2010_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp27-cp27m-manylinux2010_x86_64.whl
- Upload date:
- Size: 218.7 kB
- Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002612c913ad171274f50a76de8c22c7acd9e1cb84acc89a0b94645cfba6e5ac
|
|
| MD5 |
90e4c0c87dd08eea10a174a4b41ccff5
|
|
| BLAKE2b-256 |
005fb45f2e9408afc567f8a4484e68805bfb91ae10c66af0a69319899cbe41fe
|
File details
Details for the file waterz-0.9.0-cp27-cp27m-manylinux1_x86_64.whl.
File metadata
- Download URL: waterz-0.9.0-cp27-cp27m-manylinux1_x86_64.whl
- Upload date:
- Size: 181.4 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8126f97dee890ef0aaa533ad3c79f8203cbb983702f6621b15060cb1fa29d53
|
|
| MD5 |
5fa63d35d98925505b8b2044a4f0e92e
|
|
| BLAKE2b-256 |
90311f97f6f2d63ca143f1895433fe7f00e28b39be292618ecb20e1acf50367f
|
File details
Details for the file waterz-0.9.0-cp27-cp27m-manylinux1_i686.whl.
File metadata
- Download URL: waterz-0.9.0-cp27-cp27m-manylinux1_i686.whl
- Upload date:
- Size: 180.7 kB
- Tags: CPython 2.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4def18f2a752140701c52b82a6f8ad4d95516db4ee60d932a8d2e19163082e7e
|
|
| MD5 |
da7f37fa9926764f57afa872887d834b
|
|
| BLAKE2b-256 |
b7cc49d819df7a32dcd6dfe896d91ac0c6b1198589d5caf6658a09df27448c19
|