Matlab code and atlas data for fitting diffusion models to diffusion-weighted MRI data.
This repository contains Matlab code to fit various diffusion models to diffusion-weighted MRI data. Models include the conventional single tensor model, ball-and-sticks models, and various two-tensor models. Estimation methods include non-linear least squares or maximum-likelihood estimation assuming Rician noise. Furthermore, the repository also contains a model complexity atlas and an orientation atlas computed from 500 elderly subjects [ref], for respectively regularization and model selection purposes. Sample scripts and a sample dataset are provided to demonstrate how to register the atlas data to the subject space, and how to fit various diffusion models to the data.
For registering the atlas data to the subject space:
- Install FSL and DTI-TK
- Run the Bash script Sample_code_coregistration_with_dtitk.sh.
For fitting diffusion models to the diffusion-weighted MRI data:
- Download 'nifti-tools' from Jimmy Shen and 'estimation tools' from Dirk Poot, and put them in your Matlab path. For convenience, these dependencies have also been included in the directory matlab_code.
- Run the Matlab script Sample_code_estimation_with_prior.m.
For further questions, you may refer to the paper [ref] or contact me at joorarkesteijn(at)gmail.com.