run_multi

Import in python using from mcutils.scripts.MDE.spherical_mean import run_multi

mcutils.scripts.MDE.spherical_mean.run_multi(diffusion_img: nibabel.nifti1.Nifti1Image, indices, method='sample', bvecs=None, order=None)[source]

Computes the spherical mean for each b-value

Parameters
  • diffusion_img – image with the diffusion data

  • indices – integer array with shell ids (zero-based)

  • method – method used to compute the spherical mean

  • bvecs – (Ng, 3) array of gradient orientation

  • order – maximum spherical harmonic order

Returns

image with spherical mean for each shell