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

Conversion from MRTrix SH basis to dipy #1782

scott-trinkle opened this issue Mar 15, 2019 · 1 comment


Copy link

commented Mar 15, 2019

MRtrix3 changed their SH basis moving from versions (0.2.x) to (0.3.x) (details here).

The difference between the MRtrix3 and Dipy SH bases now just has to do with the ordering of the coefficients, and a somewhat complicated (-1)^m factor.

I wrote a quick function that will reorder mrtrix3 SH images into the Dipy basis, so that I can import FODs/etc. computed with mrtrix3 into python for further processing and visualization using Dipy.

Here is a jupyter notebook I made including the function and a quick toy example validating that both softwares expand the same data onto the same coefficients after the mrtrix3 coefficients are converted into the Dipy basis.

I'm happy to make a PR to include this in "dipy/reconst/" if it would be useful, otherwise I thought I'd just post it here for others to find as needed.


This comment has been minimized.

Copy link

commented Mar 16, 2019

The is a relevant issue on this here: #392 .

mrtrix 0.2.x basis is supported in dipy. If I understand correctly the basis in 0.3.x only have a normalization factor compared to 0.2.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.