Skip to main content
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.

Metadata

Release files for staple 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for staple 0.3.2
File Size Uploaded
staple-0.3.2.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for staple 0.3.2
File Interpreter ABI Platform
staple-0.3.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.9 kB

Release files / staple-0.3.2.tar.gz

Download URL staple-0.3.2.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
af5bf71a7eb51f6936ef776310b4dcee802704a7125cb665f95496c203bf5b1d
BLAKE2b-256 checksum
How to use checksums
34276a4dc0039b606da7e0e35c5b83b2f8ead8ec678c61b8a6e768dede23a179
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

Release files / staple-0.3.2-py2.py3-none-any.whl

Download URL staple-0.3.2-py2.py3-none-any.whl
Size 6.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2750d535c410c7bea8bc7bd07959522ae810c276d5fc3b519942bb278057fc4a
BLAKE2b-256 checksum
How to use checksums
f8c758478f3b93d8e32e85580ffaf4088bbefd16e261791ba259359ff501473c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page