Skip to content

YangGaoUQ/iQSM_qMR_Challenge

Repository files navigation

Yang's iQSM MATLAB toolbox for ISMRM 2023 quantitative MRI Open Challenge

  • This repo is a matlab toolbox for our paper "Instant tissue field and magnetic susceptibility mapping from MRI raw phase using Laplacian enhanced deep neural networks";
  • The iQSM (QSM reconstruction from raw phase) and iQFM (local field recon from raw phase) were encapsulated into two matlab function files, which are easy to use;
  • This code was built and tested on win10 system with Nvdia A4000, ubuntu with Nvidia A6000, and macos12.0.1 (on CPU);
  • Currently, the performance of iQSM will decrease on ultra-high resolution data (0.7 mm isotropic or higher) due to training data limitation; an enhanced version, iQSM+, will be updated soon later next month. please visit, https://github.com/sunhongfu/deepMRI for our latest work, including DL-based QSM acquisition acceleration, dipole inversion, backgroun field removal, and phase unwrapping.

Domo data for a quick start   |   Our paper @ NeuroImage (full paper)

Content

Overview

(1) Overall Framework

Whole Framework Fig. 1: Overview of iQFM and iQSM framework using the proposed LoT-Unet architecture, composed of a tailored Lap-Layer and a 3D residual Unet.

(2) Representative Results

Representative Results Fig. 2: Comparison of different QSM methods on three ICH patients. Susceptibility images of two orthogonal views are illustrated for each subject. Red arrows point to the artifacts near the hemorrhage sources in different QSM reconstructions.

Manual

Requirements

- Python 3.7 or later
- NVDIA GPU (CUDA 10.0 or higher)
- Anaconda Navigator (4.6.11) for Pytorch Installation
- Pytorch 1.8 or later
- MATLAB 2017b or later
- BET tool from FSL tool box (optional)

Quick Start (on demo data)

  1. Clone this repository.

  2. Install prerequisites (on mac or linux system);

    1. Installl anaconda
    2. open a terminal and create your conda environment to install Pytorch and supporting packages (scipy); the following is an example
          conda create --name Pytorch
          conda activate Pytorch
          conda install pytorch cudatoolkit=10.2 -c pytorch
          conda install scipy
      
  3. Now, you have every thing ready! the usage of iQSM and iQFM is easy:

    1. convert your magnitude and phase data into NIFTI files, one can also make a BrainMask.nii if BET tool is installed;
    2. save your acquisition parameters (B0 strength, B0_dir, voxel size, TE) in a mat file
      Recon_iQSM(PhasePath, ParamsPath, MaskPath, MagPath, ReconPath) % for QSM recon; ReconPath is where results saved; 
      Recon_iQFM(PhasePath, ParamsPath, MaskPath, MagPath, ReconPath) % for lfs recon
    

    Only Phase data and Parameters file is compulsory. The other inputs are optional!

⬆ top

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published