run_single

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

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

Computes the mean across a diffusion image

Parameters
  • diffusion_img – 4D image with diffusion data (shape=(Nx, Ny, Nz, Ng))

  • method – method used to compute the spherical mean

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

  • order – maximum spherical harmonic order

Returns

image with the spherical mean