Skip to main content

Density Compensation Function Design Tool for Arbirary k-Space Trajectoryies.

Project description

Magnetic Resonance Arbitrary Density Compensation Function (MRArbDcf, MAD)

Introduction

This is the code repository for paper "Sampling Density Compensation using Fast Fourier Deconvolution" [1]. To fill the gap that the previous iterative DCF methods are slow (especially in 3D), this package provides a non-iterative method based on fast Fourier deconvolution. This package supports both CPU and GPU and can derive DCF for a trajectory designed for a $256^3$ matrix size in $30$ seconds on a multi-core CPU or $10$ seconds on a GPU.

Installation

You can install this package either via pip:

$ pip install mrarbdcf

or offline

$ bash install.bash

Optionally, to enable CUDA acceleration in this package, you need to install cufinufft and cupy. It's recommended to read their official installation guides before installing - pip is not the best source for installation because some dependencies are only available from conda.

Usage

For tutorials, you can find examples in the example folder. Most functions are well-commented in the Google style. We plan to release the documents on readthedocs.org in the future.

Acknowledgement

FINUFFT [2,3] and CUFINUFFT [4] are used as NUFFT operators in this package. We thank the authors for their contributions to create such fast NUFFT libraries.

Reference

[1] Luo R, Hu P, Qi H. Sampling Density Compensation using Fast Fourier Deconvolution [Internet]. arXiv; 2025 [cited 2025 Oct 17]. Available from: http://arxiv.org/abs/2510.14873

[2] Barnett AH, Magland J, af Klinteberg L. A Parallel Nonuniform Fast Fourier Transform Library Based on an “Exponential of Semicircle" Kernel. SIAM J Sci Comput. 2019 Jan;41(5):C479–504.

[3] Barnett AH. Aliasing error of the exp$(\beta\sqrt{1-z^2})$ kernel in the nonuniform fast Fourier transform. Applied and Computational Harmonic Analysis. 2021 Mar 1;51:1–16.

[4] Shih Y hsuan, Wright G, Anden J, Blaschke J, Barnett AH. cuFINUFFT: a load-balanced GPU library for general-purpose nonuniform FFTs. 2021 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW). 2021 June;688–97.

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

mrarbdcf-1.0.1.tar.gz (22.0 kB view details)

Uploaded Source

File details

Details for the file mrarbdcf-1.0.1.tar.gz.

File metadata

  • Download URL: mrarbdcf-1.0.1.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mrarbdcf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d760f599ad8f7e19e301d84f149c5b274241e7a8e0837f9f8bd8ca060b0b4c90
MD5 d2f9d13acaa56aaa0bfc5a6c744e46a0
BLAKE2b-256 8d2242c6aea5c223b02815b8d5c6a352985cf0527dfddeb3d1ce720babde72ee

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