Skip to content

Instantly share code, notes, and snippets.

@MrBago
Created March 28, 2013 02:54
Show Gist options
  • Save MrBago/5260154 to your computer and use it in GitHub Desktop.
Save MrBago/5260154 to your computer and use it in GitHub Desktop.
test for dsi model with more than 1 b0
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