Skip to content

donglaiw/waterz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waterz

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

Features in this fork

Incorporate functions from Mala_v2.zip from http://cremi.org for better segmentation result

Installation (python 3.8)

conda create -n zw python==3.8 numpy cython
pip install --editable .

Usage

import waterz
import numpy as np

# affinities is a [3,depth,height,width] numpy array of float32
affinities = ...
# evaluation: vi/rand
seg_gt = None

aff_thresholds = [0.005, 0.995]
seg_thresholds = [0.1, 0.3, 0.6]

seg = waterz.waterz(aff, seg_thresholds, merge_function='aff50_his256',                                
              aff_threshold=aff_thresholds, gt=seg_gt)

About

Simple watershed and agglomeration library for affinity graphs.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 69.3%
  • Python 30.7%