This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
flexinterpn [2011/05/29 00:53] jochen changed filename for demo, splash.jpg no longer exists! |
flexinterpn [2011/05/29 04:44] jochen removed dead external link |
||
---|---|---|---|
Line 5: | Line 5: | ||
When I started with writing visualization functions, I soon discovered that the interpn function of Matlab is accurate and, in some regards, much more flexible but also, to my dismay, not fast enough to handle real-time updates for when the cursor is moved in a 3-canonical-slicing view of the brain. | When I started with writing visualization functions, I soon discovered that the interpn function of Matlab is accurate and, in some regards, much more flexible but also, to my dismay, not fast enough to handle real-time updates for when the cursor is moved in a 3-canonical-slicing view of the brain. | ||
- | After looking up several helpful links about interpolation (e.g. [[http://www.all-in-one.ee/~dersch/interpolator/interpolator.html|information about interpolation quality]]), I decided to write a C-based function that would allow the following operations: | + | After looking up several helpful links about interpolation, I decided to write a C-based function that would allow the following operations: |
* up to 4D data handling | * up to 4D data handling | ||
Line 79: | Line 79: | ||
sampled = flexinterpn(data, coords);</code> | sampled = flexinterpn(data, coords);</code> | ||
* a coordinate range specified like this: <code matlab flexinterpn_coordinate_range.m>% load image file | * a coordinate range specified like this: <code matlab flexinterpn_coordinate_range.m>% load image file | ||
- | im = neuroelf_file('s', 'text2'); | + | im1 = neuroelf_file('s', 'text2'); |
% show interesting zoom/slide effect (like Mac screen saver) | % show interesting zoom/slide effect (like Mac screen saver) |