Fast interp1 with 'spline'
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (2)
Chris McComb
el 1 de Abr. de 2015
0 votos
Are you calling interp1 with a vector or lookup points? If not, doing so could give you a significant speed-up.
1 comentario
Philip
el 8 de Jun. de 2015
0 votos
griddedInterpolant is a lot faster than interp1, interp2, etc. routines.
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!