Skip to main content

Polar Fourier Transform for Reconstruction of Polar MR images

Project description

PyPFT

Polar Fourier Transform for Reconstruction of Polar MR images in Python using Numpy

Assuming you have raw kspace data in polar coordinates $F\left( {\rho ,\varphi } \right)$, if you want to reconstruct the image in the spatial domain with polar coordinates $f\left( {r,\theta } \right)$, you can follow these steps:

$F\left( {\rho ,\varphi } \right)\mathop \leftrightarrow \limits^{FF{T_\varphi }} {F_n}\left( \rho \right)\mathop \leftrightarrow \limits^{{H_n}} {f_n}\left( r \right)\mathop \leftrightarrow \limits^{IFF{T_\theta }} f\left( {r,\theta } \right)$

Meaning that you need to take two FFTs and one Hankel Transform. FFT is already implemented in numpy.fft.fft. However, hankel transform is not implemented. Also, in general, there is no package to handle this type of data natively in Python. This package serves as a toolkit to reconstruct polar MR images using PFT and handle the images after that.

Based on:

Golshani, S., & Nasiraei‐Moghaddam, A. (2017). Efficient radial tagging CMR exam: A coherent k‐space reading and image reconstruction approach. Magnetic resonance in medicine, 77(4), 1459-1472. https://doi.org/10.1002/mrm.26219

Dependencies

"matplotlib>=2.0",
"joblib>=1.5",
"opencv-python>=4.12",
"platformdirs>=4.4",
"scipy>=1.16"

Installing

Optional: Create a conda environment

conda create -n PyPFT python=3.13

Then, once the environment is activated, install it using pip

pip install pypft

You can run the tests when you are in the directory by running this command:

run-tests

You need to have the test files in order to run test_*_sample functions. However, you can run the random ones without test files.

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

pypft-0.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypft-0.0.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file pypft-0.0.2.tar.gz.

File metadata

  • Download URL: pypft-0.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pypft-0.0.2.tar.gz
Algorithm Hash digest
SHA256 acfe0f78b89335a2a24f4d035b3e2b24f9652d916be4015a47c15a143a0d9ab5
MD5 290fb11e29eba9eeafe10f2c8aea0268
BLAKE2b-256 059551ac3dcf4b080056c091f49a38deefb5fb6709bdef2c6c9307aa4c23d02e

See more details on using hashes here.

File details

Details for the file pypft-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pypft-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pypft-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 704f0b2e7e92f015556a0abcb7b920b2863055729ea7f7dc96e21be2e6017a65
MD5 a00cabc928b999b1890c5acba5e324cb
BLAKE2b-256 42fde0a801b1645286702b492d7e3cf5012c8daa8007420734828cde53b86829

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