brain-slam / slam

Surface anaLysis And Modeling
MIT License
13 stars 24 forks source link

2. a. implement spherical harmonic formulas on a sphere #108

Open alexpron opened 1 year ago

alexpron commented 1 year ago

Steven and Maxime We can use formula provided by scipy https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.sph_harm.html

But the spherical harmonics depends on the parameterization by theta and phi angles. It is important to check that the first non trivial spherical harmonic (n=1, m=0) is approximately aligned with the mapping of the first non-trivial eigenfunction on the mesh. If not, we need to apply a rotation.

Image