Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functions enabling .tck export compatible with MRTrix3 MRView #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

htakemur
Copy link
Contributor

@htakemur htakemur commented Aug 26, 2020

Overview of the problem

Original version of code (dtiExportFibersMrtrix.m) was written on the basis of older version of MRTrix 0.2. Therefore, exported .tck file is not compatible with MRTrix3's MRView.

Proposed solution at this point
We figured out that header information of .tck file is not identical between MRTrix 0.2 and MRTrix3. Specifically, header "mrtrix fibers" becomes "mrtrix tracks" in MRTrix3. I made minimum change in dtiExportFibersMrtrix.m incorporating this header change, and created a new function (dtiExportFibersMrtrix3.m) supporting .tck export for MRTrix3.

I confirmed that we could load .tck file exported from fg structure in vistasoft in MRView (of MRTrix3) using this function.

What will happen after this change?
As you see in edits on fgWrite.m, the default output of tck file will become compatible with MRTrix3, not MRTrix 0.2 after merging this commit. Original function supporting MRTrix0.2 remains, and can be used if you specified type of exporting format as "tck2", in fgWtite.m function.

Therefore, I am making newest version of .tck as default, while keeping the option to export older file format in fgWrite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant