fit_sph_harm¶
Import in python using from mcutils.scripts.MDE.spherical_mean import fit_sph_harm
-
mcutils.scripts.MDE.spherical_mean.
fit_sph_harm
(diffusion_data, bvecs, order=None)[source]¶ Fits spherical harmonics to the diffusion data
- Parameters
diffusion_data – (Nx, Ny, Nz, Ng) array of diffusion data
bvecs – (Ng, 3) array of diffusion-encoding gradients
order – maximum spherical harmonic order
- Returns
(Nx, Ny, Nz, Nc) array with the components