MRI Non-Cartesian Fourier Operators with multiple computation backends.
Project description
Doing non-Cartesian MR Imaging has never been so easy
Introduction
MRI-NUFFT is an open-source Python library that provides state-of-the-art non-Cartesian MRI tools: trajectories, data loading and fast and memory-efficient operators to be used on laptops, clusters, and MRI consoles.
In particular, it provides a unified interface for computing Non-Uniform Fast Fourier Transform (NUFFT), using the specialized backend of your choice ((cu)finufft, gpunufft, torchkbnufft, … ), and with integrated MRI-specific features such as:
MRI-nufft is a nice and polite piece of software, that will return the same type of array (e.g numpy, cupy, torch) provided at input, without extra copies for conversions.
On top of that we ship a variety of non-Cartesian trajectories commonly used by the MRI community, and even tools to helps you develop new ones.
Modularity and Integration of MRI-nufft with the python computing libraries.
Usage
from scipy.datasets import face # For demo
import numpy as np
import mrinufft
# Create 2D Radial trajectories for demo
samples_loc = mrinufft.initialize_2D_radial(Nc=100, Ns=500)
# Get a 2D image for the demo (512x512)
image = np.complex64(face(gray=True)[256:768, 256:768])
## The real deal starts here ##
# Choose your NUFFT backend (installed independently from the package)
# pip install mri-nufft[finufft] will be just fine here
nufft = mrinufft.get_operator("finufft",
samples_loc, shape=image.shape, density="voronoi", n_coils=1
)
kspace_data = nufft.op(image) # Image -> Kspace
image2 = nufft.adj_op(kspace_data) # Kspace -> Image
pinv = nufft.pinv_solver(kspace_data) # get a Pseudo inverse (least square minimization)
For improved image quality, embed these steps in a more complex reconstruction pipeline (for instance using PySAP).
Want to see more ?
Check the Documentation
Or go visit the Examples
Installation
MRI-nufft is available on PyPi and can be installed with:
pip install mri-nufft
Additionally, you will have to install at least one NUFFT computation backend. See the Documentation for more guidance. Typically we recommend:
pip install mri-nufft[finufft] pip install mri-nufft[cufinufft] # if you have a NVIDIA GPU and CUDA>=12
Benchmark
A benchmark of NUFFT backend for MRI applications is available in https://github.com/mind-inria/mri-nufft-benchmark
Who is using MRI-NUFFT?
Here are several project that rely on MRI-NUFFT:
Add yours by opening a PR or an issue, let us know how you use MRI-nufft !
How to cite MRI-NUFFT
We published MRI-NUFFT at JOSS
Comby et al., (2025). MRI-NUFFT: Doing non-Cartesian MRI has never been easier. Journal of Open Source Software, 10(108), 7743, https://doi.org/10.21105/joss.07743
@article{Comby2025, doi = {10.21105/joss.07743},
author = {Comby, Pierre-Antoine and Daval-Frérot, Guillaume and Pan, Caini and Tanabene, Asma and Oudjman, Léna and Cencini, Matteo and Ciuciu, Philippe and GR, Chaithya},
title = {MRI-NUFFT: Doing non-Cartesian MRI has never been easier}, journal = {Journal of Open Source Software},
url = {https://doi.org/10.21105/joss.07743},
year = {2025},
publisher = {The Open Journal},
volume = {10},
number = {108},
pages = {7743},
}
Contributing
We warmly welcome contributions ! Check out our guidelines , Don’t hesitate to look for unsolved issues
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mri_nufft-1.4.0.tar.gz.
File metadata
- Download URL: mri_nufft-1.4.0.tar.gz
- Upload date:
- Size: 3.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1da5f88f35f56ce4059e2466c69fe838bc4478c3300d3f0e65d3dcf9f52184cf
|
|
| MD5 |
f23f806ad30e044ffa1e95b8827856f2
|
|
| BLAKE2b-256 |
1bd93ee5a2860aaf2dcd81a57c218445789bc78b3ee4b48f582fa51539bfbb06
|
Provenance
The following attestation bundles were made for mri_nufft-1.4.0.tar.gz:
Publisher:
tags-release.yml on mind-inria/mri-nufft
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mri_nufft-1.4.0.tar.gz -
Subject digest:
1da5f88f35f56ce4059e2466c69fe838bc4478c3300d3f0e65d3dcf9f52184cf - Sigstore transparency entry: 724962501
- Sigstore integration time:
-
Permalink:
mind-inria/mri-nufft@3bca26495d44c347b34124c54b41274e5d2e6df2 -
Branch / Tag:
refs/tags/v1.4.0 - Owner: https://github.com/mind-inria
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tags-release.yml@3bca26495d44c347b34124c54b41274e5d2e6df2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mri_nufft-1.4.0-py3-none-any.whl.
File metadata
- Download URL: mri_nufft-1.4.0-py3-none-any.whl
- Upload date:
- Size: 167.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff6bfa4224c2fb5e008f019bac684f7033918f23b5c734f4fcf3ae2cf89526f7
|
|
| MD5 |
db07e0009fa87288daa6625f53368de7
|
|
| BLAKE2b-256 |
9b0a27dd5308e35f9d991920c2a7e316049577c64dc2d44d6e14e28c0070a791
|
Provenance
The following attestation bundles were made for mri_nufft-1.4.0-py3-none-any.whl:
Publisher:
tags-release.yml on mind-inria/mri-nufft
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mri_nufft-1.4.0-py3-none-any.whl -
Subject digest:
ff6bfa4224c2fb5e008f019bac684f7033918f23b5c734f4fcf3ae2cf89526f7 - Sigstore transparency entry: 724962506
- Sigstore integration time:
-
Permalink:
mind-inria/mri-nufft@3bca26495d44c347b34124c54b41274e5d2e6df2 -
Branch / Tag:
refs/tags/v1.4.0 - Owner: https://github.com/mind-inria
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tags-release.yml@3bca26495d44c347b34124c54b41274e5d2e6df2 -
Trigger Event:
push
-
Statement type: