- 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)
- See https://github.com/sunhongfu/deepMRI/tree/master/iQSM or contact Yang ([email protected] or [email protected]) for more details about network training.
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.
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.
- 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)
-
Clone this repository.
-
Install prerequisites (on mac or linux system);
- Installl anaconda
- 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
-
Now, you have every thing ready! the usage of iQSM and iQFM is easy:
- convert your magnitude and phase data into NIFTI files, one can also make a BrainMask.nii if BET tool is installed;
- 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!