GithubHelp home page GithubHelp logo

pyparmri's Introduction

PyParMRI

Collection of magnetic resonance imaging (MRI) reconstruction tools written in Python with PyTorch.

Currently implemented methods:

  1. GeneRalized Autocalibrating Partial Parallel Acquisition (GRAPPA) [1]. Implementation follows similar lines to the description provided in [2].

     [1] Griswold, Mark A., et al. "Generalized autocalibrating partially parallel acquisitions (GRAPPA)."
     Magnetic Resonance in Medicine, 47.6 (2002): 1202-1210.
     
     [2] Uecker, Martin, et al. "ESPIRiT—an eigenvalue approach to autocalibrating parallel MRI: where SENSE meets GRAPPA."
     Magnetic resonance in medicine 71.3 (2014): 990-1001.
    
  2. Sum-Of-Squares (SOS) image - standard image combination techniques for parallel images (PI) MRI.

Notes about the implementations:

  1. Implementation was written with PyTorch - should be differentiable, but this has not been tested thoroughly.

  2. GRAPPA and SOS image reconstructions are GPU supported - this can be very useful when reconstructing from large k-space raw data files.

  3. Two use code examples are provided:

    a. main_tester.py - Can be run on GPU, or through multi-CPU processing (this feature is not fully tested).

    b. main_tester_MPI.py - Can be run with MPI, but this is not fully tested.

  4. Using the Python implementation of mapVBVD, data_io folder provides some simple scripts to read Siemens TWIX data files. However, the rsulting images do not contain the proper header.

  5. GRAPPA recosntruction code supports multi-coil (multi-channel) 3D acquisitions (2D multi-slice acquisitions should also be supported, but this has not been tested yet). Data format should follow (4D tensor):

     # Columns (Freq. encode), # Channels (Coils), # PE Lines, # Partitions. 
    

    This should be automatically fullfiled if you read from a TWIX .dat file. GRAPPA kernels are 2D, but processing is batch performed for all frequency encode columns.

Requirements:

  1. PyTorch 1.11.0
  2. Numpy 1.22.1
  3. pyMapVBVD 0.4.8 - https://pypi.org/project/pyMapVBVD/
  4. mpi4py 3.1.3 - https://pypi.org/project/mpi4py/ (if you want to test multi-CPU processing)

pyparmri's People

Contributors

krakenleaf avatar

Stargazers

Parisima Abdali avatar Nikola Janjušević avatar  avatar ShuaiHuang avatar paprikatree avatar Breeze. avatar Devansh Khandekar avatar Chaithya G R avatar

Watchers

 avatar

pyparmri's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.