Skip to main content

Implementation of the STAPLE segmentation algorithm

Project description

https://img.shields.io/badge/License-MIT-yellow.svg https://img.shields.io/pypi/v/staple.svg https://img.shields.io/travis/fepegar/staple.svg Documentation Status 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 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.

Source Distribution

staple-0.2.3.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

staple-0.2.3-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file staple-0.2.3.tar.gz.

File metadata

  • Download URL: staple-0.2.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for staple-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e801e3f3f8ab4b326bbcfca6625f1a019f94f363ff3d699613aadcf5ca3b675a
MD5 df9326d71829e74cae55f16dd5176609
BLAKE2b-256 d9e2f0030e024cc7c11eb93690487f81389e0b7a5b9084c1cef10c793f5c6492

See more details on using hashes here.

File details

Details for the file staple-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: staple-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for staple-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e9eae94a1c44e370bce550502f1c0be1bd79f2e519859643a33da8d790e5c777
MD5 c19194bd04bd0866ffd3ff759d8aa0fe
BLAKE2b-256 58772a69f9fdd75a6cfc6011eeb3add49751491cc64f67a8ff17ba508e3c46d4

See more details on using hashes here.

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