You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: replace Delaunay triangulation by some other interpolation #1308
... the triangles are not beautiful. Would be great to have something more smooth and contour like. Also @kingjr was complaining, maybe even suggesting to take a stab on it ;-)
Can you share an example gist where it doesn't look good? It might just be a matter of plotting the surface better (e.g., adding definitions for normals).
Activity
dengemann commentedon May 29, 2014
cc @agramfort
larsoner commentedon May 29, 2014
Can you share an example
gistwhere it doesn't look good? It might just be a matter of plotting the surface better (e.g., adding definitions for normals).dengemann commentedon May 30, 2014
take a look at the images here: #1301
larsoner commentedon May 30, 2014
The triangulation looks reasonable. You mean you want the interpolation
between points to be something other than linear?
kingjr commentedon May 30, 2014
Yes, this triangulation may not be the best, as it incorrectly suggests edges on the topography.
In Fieldtrip, they use Matlab 'V4' (c) interpolation, adapted from <a, href=http://topex.ucsd.edu/sandwell/publications/021_GRL_biharmonic_1987.pdf>David T. Sandwell, Biharmonic spline interpolation of GEOS-3 and SEASAT altimeter data, Geophysical Research Letters, 2, 139-142, 1987
You can have a look at their griddata function.
In your case a 'cubic' interpolation would probably smoothen the topography.
PS: I'm not complaining. I'm just noticing ;).
dengemann commentedon May 30, 2014
yes, the triangulation is fine. I actually wanted to say that I would prefer not to see any triangles but have something really smooth.
kingjr commentedon May 30, 2014
Everything you need here:
http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html
Yerzhan19 commentedon Jun 29, 2018
Is there any interpolation already implemented in MNE similar to Matlabs "Biharmonic spline interpolation"("v4" method in Matlab's griddata)?
agramfort commentedon Jun 29, 2018
yjmantilla commentedon May 3, 2021
I have an early stage translation of it here, if anyone is interested in that:
https://github.com/yjmantilla/gdatav4