Skip to main content

A collection of TensorFlow add-ons for computational MRI.

Project description

TFMR logo

pypi build docs doi

TensorFlow MRI is a collection of TensorFlow add-ons for computational MRI.

It contains functionality including:

  • Estimation of coil sensitivity maps: Walsh’s method, Inati’s fast method and ESPIRiT.

  • Coil compression using singular value decomposition (SVD).

  • Image reconstruction operations: basic (FFT, NUFFT), parallel imaging (SENSE, GRAPPA, CG-SENSE) and partial Fourier (zero-filling, homodyne detection, projection onto convex sets).

  • Calculation of radial and spiral trajectories and sampling densities.

  • Keras metrics for image quality assessment, classification and segmentation.

  • Helper operations for array manipulation, image processing and linear algebra.

All operations are performed using a TensorFlow/Keras backend. This has several key advantages:

  • Seamless integration in machine learning applications.

  • Runs on heterogeneous systems, with most operations supporting CPU and GPU-accelerated paths.

  • Code is easy to understand, with most of this package written in Python.

Installation

You can install TensorFlow MRI with pip:

$ pip install tensorflow-mri

Note that only Linux is currently supported.

TensorFlow Compatibility

Each TensorFlow MRI release is compiled against a specific version of TensorFlow. Please see the compatibility table below to see what versions of each package you can expect to work together.

TensorFlow MRI

TensorFlow

v0.4

v2.6

v0.5

v2.6

v0.6

v2.6

Documentation

Visit the docs for the API reference and examples of usage.

Contributions

If you use this package and something does not work as you expected, please file an issue describing your problem. We will do our best to help.

Contributions are very welcome. Please create a pull request if you would like to make a contribution.

Citation

If you find this software useful in your work, please cite us.

FAQ

When trying to install TensorFlow MRI, I get an error about OpenEXR which includes: `OpenEXR.cpp:36:10: fatal error: ImathBox.h: No such file or directory`. What do I do?

OpenEXR is needed by TensorFlow Graphics, which is a dependency of TensorFlow MRI. This issue can be fixed by installing the OpenEXR library. On Debian/Ubuntu:

$ apt install libopenexr-dev

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tensorflow_mri-0.6.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (118.3 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

tensorflow_mri-0.6.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (118.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

tensorflow_mri-0.6.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (118.3 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

tensorflow_mri-0.6.0-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (118.3 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

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