Skip to main content

Implementation of the STAPLE segmentation algorithm

Project description

License PyPI CI Documentation Status Test coverage Updates

Python implementation of the Simultaneous Truth and Performance Level Estimation (STAPLE) algorithm for generating ground truth volumes from a set of binary segmentations.

The STAPLE algorithm is described in S. Warfield, K. Zou, W. Wells, Validation of image segmentation and expert quality with an expectation-maximization algorithm in MICCAI 2002: Fifth International Conference on Medical Image Computing and Computer-Assisted Intervention, Springer-Verlag, Heidelberg, Germany, 2002, pp. 298-306.

Installation

$ pip install staple

Usage

$ staple seg_1.nii.gz seg_2.nii.gz seg_3.nii.gz result.nii.gz

Caveats

  • The SimpleITK implementation is about 16 times faster for the test images (0.7 s vs 11.8 s). The implementation in this repository is mostly for educational purposes.
  • Markov random field (MRF) postprocessing is not implemented (nor is it in the ITK version). If you need STAPLE with MRF, check out Jorge Cardoso’s NiftySeg.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details


Download files

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

Files for staple, version 0.3.2
Filename, size File type Python version Upload date Hashes
Filename, size staple-0.3.2-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size staple-0.3.2.tar.gz (13.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page