Spline interpolation degree question

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 1K views
sandon
Messages
15
Reaction score
1
Hi,

I working on code that does image tracking with missing pixels, but I noticed that higher ordered spline interpolation is unstable. Found through trial and error that the best result is degree 3, picture related. I always thought that spline interpolation does not display behaviours shown in the picture because they are conducted piece by piece over the data set. Is there a numerical explanation for this behaviour?

P.S interpolation done in python with scipy library
 

Attachments

  • BSpline4079_28.png
    BSpline4079_28.png
    15.3 KB · Views: 557
Physics news on Phys.org
If the distances between your data points differ by large factors I'm not surprised that high order splines do strange things. It is the same behavior you see outside the interpolation range (as extrapolation).