Implementation of the STAPLE segmentation algorithm
Project description
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. The implementation in this repository is mostly for educational purposes.
Markov random field (MRF) preprocessing 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
Built Distribution
Hashes for staple-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f7d4d9bbd739d4533312c81fc86b751278cd2e3dfdd3bbf1b8f2c5a6d6cfe16 |
|
MD5 | e464702349ceb53ccc276145b2a16b8e |
|
BLAKE2b-256 | 8e396c8b1da1e70039deeab2f616de19d237dd329afcc1163408410240505620 |