Skip to main content

Thickness calculation on binary 3D images

Project description

Compute the thickness of a solid using Anthony J. Yezzi’s method described in the article “An Eulerian PDE Approach for Computing Tissue Thickness, IEEE TRANSACTIONS ON MEDICAL IMAGING, VOL. 22, NO. 10, OCTOBER 2003”: http://dx.doi.org/10.1109/tmi.2003.817775

A C implementation by Rubén Cárdenes can be found at http://www.dtic.upf.edu/~rcardenes/Ruben_Cardenes/Software.html and helped me write this.

Requirements

numpy, cython, scikit-image. Tested with Debian Jessie, miniconda-python 3.5.2, cython 0.24, numpy 1.11.2, scikit image 0.12.3

Installation instruction

Available on pypi: https://pypi.python.org/pypi/pyezzi . Use pip: pip install pyezzi

Alternatively, clone the repository and build cython modules with python setup.py build_ext --inplace.

Usage

from pyezzi.thickness import compute_thickness
thickness = compute_thickness(labeled_image, debug=True)

labeled_image is a 3 dimensional numpy array where the wall is labeled 2 and the interior is labeled 1.

Check out the included jupyter notebooks for more detail and examples.

Contributions

Feel free to submit pull requests. I know the code is nowhere near optimal as it is.

License

You’re free to use and modify the code, but please cite me and the original paper.

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

pyezzi-0.1.1.tar.gz (324.0 kB view details)

Uploaded Source

File details

Details for the file pyezzi-0.1.1.tar.gz.

File metadata

  • Download URL: pyezzi-0.1.1.tar.gz
  • Upload date:
  • Size: 324.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyezzi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0134cd4caab7703728ad55808b6c27cde8d560b32eef69ee51dafc87d58dff57
MD5 6a67a4f53ed494141be4bf89ae1c4979
BLAKE2b-256 35a9b478c8ce6a52485d1c605b3f5ee8a188c4a7c6307bccd9d3a3e820256e57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page