Spherical Harmonic bases#
Spherical Harmonics (SH) are functions defined on the sphere. A collection of SH can be used as a basis function to represent and reconstruct any function on the surface of a unit sphere.
Spherical harmonics are orthonormal functions defined by:
where
where
A function
Once the coefficients are computed, the function
In HARDI, the Orientation Distribution Function (ODF) is a function on the sphere. Therefore, SH functions offer the ideal framework for reconstructing the ODF. Descoteaux et al.[1] use the Q-Ball Imaging (QBI) formalization to recover the ODF, while Tournier et al.[2] use the Spherical Deconvolution (SD) framework.
Several modified SH bases have been proposed in the diffusion imaging literature
for the computation of the ODF. DIPY implements two of these in the
shm
module. Below are the formal definitions taken
directly from the literature.
The basis proposed by Descoteaux et al.[1]:
The basis proposed by Tournier et al.[2]:
In both cases,
By alternately selecting the real or imaginary part of the
original SH basis, the modified SH bases have the properties of being both
orthogonal and real. Moreover, due to the presence of the
The SH bases implemented in DIPY for versions 1.2 and below differ slightly from the literature. Their implementation is given below.
The
descoteaux07
basis is based on the one proposed by Descoteaux et al.[1] and is given by:
The
tournier07
basis is based on the one proposed by Tournier et al.[2] and is given by:
These bases differ from the literature by the presence of an absolute value around
The tournier07
SH basis defined above is the basis used in MRtrix 0.2
Tournier et al.[3]. However, the omission of the
Since DIPY 1.3, the descoteaux07
and tournier07
SH bases have been
updated in order to agree with the literature and the latest MRtrix3
implementation. While previous bases are still available as legacy bases,
the descoteaux07
and tournier07
bases now default to:
for the descoteaux07
basis and
for the tournier07
basis. Both bases are very similar, with their only
difference being the sign of
In practice, a maximum order
Both bases are also available as full SH bases, where odd order SH functions are also taken into account when reconstructing a spherical function. These full bases can successfully reconstruct asymmetric signals as well as symmetric signals.
NOTE:
The definition of spherical harmonics that DIPY utilizes does not match the one
in Wikipedia and scipy. Instead, DIPY follows the dMRI literature conventions,
like in descoteaux07
and tournier07
.
The code in DIPY also follows the following convention:
Let the SH be noted as