File Exchange

image thumbnail

Thin Plate Spline Network with Radiohead Example

version 1.1.0.0 (143 KB) by Travis Wiens
Thin plate splines can be used to interpolate nonuniform data, such as the Radiohead dataset, which

3 Downloads

Updated 17 Jul 2009

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.

Cite As

Travis Wiens (2020). Thin Plate Spline Network with Radiohead Example (https://www.mathworks.com/matlabcentral/fileexchange/20823-thin-plate-spline-network-with-radiohead-example), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

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

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

Very clean code

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

Removed GPL per Mathworks' requirements.

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux