Spline interpolation degree question

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: 554
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).
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
979
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 6 ·
Replies
6
Views
13K
  • · Replies 6 ·
Replies
6
Views
6K