File Exchange

image thumbnail

Thin Plate Spline Network with Radiohead Example

version 1.1 (143 KB) by

Thin plate splines can be used to interpolate nonuniform data, such as the Radiohead dataset, which

8 Downloads

Updated

View License

A thin plate spline radial basis function network may be used to interpolate non-uniformly spaced data. The surface (or line or hypersurface) is fit exactly to the given control points, with the surface in between acting similar to thin sheet of metal.
An example is given using a frame of data from the Radiohead "House of Cards" video dataset, if which the point cloud is interpolated onto a uniform grid for plotting with the surf function.
A simpler example is also included.
See blog.nutaksas.com for more details.

Comments and Ratings (5)

Mark Verveld

Thanks for sharing, I like the examples.

Some constructive criticism:
You should really consider vectorizing this. In Matlab, whenever possible, avoid loops.

I just got a 66 fold reduction in computation time on the Radiohead example with N_t 3000 and N_grid 250. (From 626 s to 9.45 s)

Also, it is easy to generalize TPS to m-dimensional values in an n-dimensional domain. That is what makes the method so powerful IMO.

Marius

Marius (view profile)

Works very well to subtract irregular background in a noisy image. Thanks!

Sander Aerts

Very clean code

Peter Ingram

Paul Behrens

A very good example of a powerful technique. The function network may be used to generate a grid for other types of analysis.

Updates

1.1

Removed GPL per Mathworks' requirements.

MATLAB Release
MATLAB 7.4 (R2007a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video