File Exchange

image thumbnail

DTI Fiber Tractography (Streamline Tracking Technique)

version (18.1 MB) by Chang Chia-Hao
Diffusion MRI, DTI, Fiber Tracking, Diffusion Tensor Calculation, Fiber Visualization


Updated 11 Oct 2012

View Version History

View License

Including diffusion tensor data calculation, fiber tractography and fiber tracts visualization Function.

[DiffusionTensorCalculation.m] will calculate the diffusion tensor, fractional anisotropy (FA), fiber direction eigenvalue and principle eigenvector.

[Tractography_STT_Euler.m] will will calculate fiber tracts by using Brute-force mathod, and tracking fiber by opposite directions.

[DtiSearch.m] is including ROI selection function and some fiber filter methods.

Cite As

Chang Chia-Hao (2021). DTI Fiber Tractography (Streamline Tracking Technique) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (10)


What will happen if I use imshow function on three matrices where the first matrix is the corresponding first eigen value and so on.

Foss Guru

Takfarinas MEDANI

bruno robalo

First of all thak you very much for your code. It's really impressive.
My question is: how do you get the view that you show on the picture? the top right one, with the tracts superimposed with the three planes (sagital, axial, coronal) of FA images.


First of all, thank you for sharing your code.

i want to ask a question

can i apply this code for 21 direction(with nonDW images) and 53 slices image

waiting your feedback


Chang Chia-Hao

You can use MATLAB to write a program convert the images(ex: DICOMs etc.)to fit the format of my data. Or modify the data loading part of the code (DiffusionTensorCalculation.m).


First of all, thank you very much for sharing your code.

I have one questions:

-If I have a DICOM or a Nifti image,what do I have to do to use them in your program?

Thank you very much for everything in advance.

Anton Semechko

Great! Thanks.

Chang Chia-Hao

Yes, The method of fiber tracking is based on the reference [Basser, P.J., et al., In vivo fiber tractography using DT-MRI data. Magn Reson Med, 2000. 44(4): p. 625-32.].

Anton Semechko

Is this implementaion based on a technique that was previously reported in literature? Your reply would be greatly appreciated.

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!