Fast interp1 with 'spline'
Show older comments
Now I am programming a matlab toolbox for computer vision. I use a lot the function 'interp1(, , ,'spline')', and this step actually accounts for 50% of the whole computation time. Just wondering if there is any faster approach to compute this, and something like mex file, etc. Thank you very much.
Accepted Answer
More Answers (2)
Chris McComb
on 1 Apr 2015
0 votes
Are you calling interp1 with a vector or lookup points? If not, doing so could give you a significant speed-up.
1 Comment
Philip
on 8 Jun 2015
0 votes
griddedInterpolant is a lot faster than interp1, interp2, etc. routines.
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!