Code covered by the BSD License  

Highlights from
Thin Plate Spline Network with Radiohead Example

5.0

5.0 | 4 ratings Rate this file 25 Downloads (last 30 days) File Size: 143 KB File ID: #20823
image thumbnail

Thin Plate Spline Network with Radiohead Example

by

 

22 Jul 2008 (Updated )

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

| Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.4 (R2007a)
Other requirements The default Radioheadhead example should run on most modern computers. If one wishes, the resolution and accuracy may be increased, at the expense of memory and computation time.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
27 Feb 2014 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.

25 Mar 2013 Marius

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

02 Apr 2012 Sander Aerts

Very clean code

08 Oct 2009 Peter Ingram  
22 Jun 2009 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
17 Jul 2009

Removed GPL per Mathworks' requirements.

Contact us