Skip to content

ENH: replace Delaunay triangulation by some other interpolation #1308

Closed

Description

@dengemann

... 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 ;-)

Activity

  1. dengemann commented on May 29, 2014

    @dengemann
    MemberAuthor
  2. larsoner commented on May 29, 2014

    @larsoner
    Member

    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).

  3. dengemann commented on May 30, 2014

    @dengemann
    MemberAuthor

    Can you share an example gist where it doesn't look good?

    take a look at the images here: #1301

  4. larsoner commented on May 30, 2014

    @larsoner
    Member

    The triangulation looks reasonable. You mean you want the interpolation
    between points to be something other than linear?

  5. kingjr commented on May 30, 2014

    @kingjr
    Member

    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 ;).

  6. dengemann commented on May 30, 2014

    @dengemann
    MemberAuthor

    The triangulation looks reasonable. You mean you want the interpolation
    between points to be something other than linear?

    yes, the triangulation is fine. I actually wanted to say that I would prefer not to see any triangles but have something really smooth.

  7. Yerzhan19 commented on Jun 29, 2018

    @Yerzhan19

    Is there any interpolation already implemented in MNE similar to Matlabs "Biharmonic spline interpolation"("v4" method in Matlab's griddata)?

  8. yjmantilla commented on May 3, 2021

    @yjmantilla

    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 ;).

    Is there any interpolation already implemented in MNE similar to Matlabs "Biharmonic spline interpolation"("v4" method in Matlab's griddata)?

    I have an early stage translation of it here, if anyone is interested in that:

    https://github.com/yjmantilla/gdatav4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions