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 a sample test with this command:

python -m pypft test

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.4.tar.gz (722.9 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.4-py3-none-any.whl (730.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypft-0.0.4.tar.gz
  • Upload date:
  • Size: 722.9 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.4.tar.gz
Algorithm Hash digest
SHA256 259847a96cf0ebb7e9f1f9d235053e53589ae75f491492177d465d49de30f2e9
MD5 b5b5b96a1d1fed209bc657c6975c4312
BLAKE2b-256 8c6f2d26eb52a950d19f30d6321cf11db1fc08eb9589c0c84ecb37b8f7b41476

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypft-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 730.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd2e2d18ead789c4ff7a63ee72690588601a49e25dd7db844f547782e4258a35
MD5 43b62f9ffdc0de3788cfb4f048008e2c
BLAKE2b-256 8af4a75c8be626a7fcf7073600cedcb7c012e7611713d95bbc9e5c0cda1028cb

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