Spline interpolation degree question

  • #1
18
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
    21.5 KB · Views: 412

Answers and Replies

  • #2
35,967
12,831
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).
 

Related Threads on Spline interpolation degree question

  • Last Post
2
Replies
35
Views
110K
  • Last Post
Replies
2
Views
2K
Replies
2
Views
2K
Replies
1
Views
2K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
1
Views
4K
Replies
1
Views
2K
Replies
1
Views
1K
  • Last Post
Replies
2
Views
2K
Top