Created
March 28, 2013 02:54
-
-
Save MrBago/5260154 to your computer and use it in GitHub Desktop.
test for dsi model with more than 1 b0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dipy.data import read_stanford_hardi | |
from dipy.reconst.dsi import DiffusionSpectrumModel | |
from dipy.reconst.odf import default_sphere | |
img, gtab = read_stanford_hardi() | |
data = img.get_data() | |
small_data = data[40, 40, 20] | |
model = DiffusionSpectrumModel(gtab) | |
fit = model.fit(small_data) | |
odf = fit.odf(default_sphere) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment