Back to the main page.

Bug 634 - add spherical spline interpolation to ft_channelrepair

Reported 2011-05-04 12:32:00 +0200
Modified 2012-08-23 14:02:04 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 enhancement
Assigned to: Jörn M. Horschig
Depends on:
See also:

Jörn M. Horschig - 2011-05-04 12:32:46 +0200

See Perrin et al., 1989, I got an implementation of this. The big advantage of using a spherical spline in contrast to the current way of using nearest neighbour interpolation is that local maxima and minima can occur at interpolated sites, whereas nearest neighbouring neglects this possibility and could add an uncontinuity instead.

Jörn M. Horschig - 2012-04-11 09:56:06 +0200

Created attachment 253 matlab script to be implemented I asked Rutger from the DCC from whom I got the implementation: " Thanks for the compliments on the Spherical Spline Interpolation. The implementation (attached) is Jason's. I assume that's what you want to include in FieldTrip? I asked Jason, and he's fine with it being included in FieldTrip. The wrapper around it that made it work with the bad-channel detector was mine, but I think FieldTrip has it's own ways of doing that? Oh, by the way if you want to use it online and speed is a problem, let me know. There a few ways in which it can be improved. I have made a dedicated online version of this combined with the bad channel detector as an "incremental algorithm", just like a filter, where samples or chunks of data can be pushed in and a state is preserved to compute the next iteration. But for offline applications the present version attached is much nicer (easier to understand and operate). "

Jörn M. Horschig - 2012-06-20 15:19:07 +0200

641 $ svn add private/sphericalSplineInterpolate.m A private/sphericalSplineInterpolate.m jorhor@mentat309:~/FieldTrip/trunk 642 $ svn ci private/sphericalSplineInterpolate.m ft_channelrepair.m test/test_ft_channelrepair.m -m "enhancement-#649-channelrepair can (finally) interpolate based on sperical spline interpolation (implementation from Jason Farquhar). test script suggests that everything works okay" Sending ft_channelrepair.m Adding private/sphericalSplineInterpolate.m Sending test/test_ft_channelrepair.m Transmitting file data ... Committed revision 6100. slight typo in the bugnumber while comitting

Jörn M. Horschig - 2012-08-23 14:02:04 +0200

bug closing time (