ZipCPU/interpolation

cubic spline interpolation is required.

ManikandanVA opened this issue · 3 comments

RTL code for cubic spline interpolation is required. will be highly appreciated. I am working on images.

Cubic splines are often considered a gold standard of interpolation. They shouldn't be. 1) They aren't shift invariant, 2) require infinite data for data streams (not images) and 3) they require a complex matrix solution.

Other, better, solutions exist without these problems.

  1. A quartic exists which will get you performance at least as good, but without the difficult requirements above. The resulting interpolator will remain smooth, easily interpolating between points, etc. It's quite doable. The development falls along the lines of the quadratic development presented both in this repository and in this post.

  2. If you really need a cubic spline interpolator, then a series of FIRs can be used to generate approximate cubic spline coefficients--again, without the required matrix solution.

Both of these approaches eliminate the need for the matrix solution, and get arguably as good as or better performance than cubic splines.

Is there a reason why you need cubic splines specifically? Or would another approach also work for you?

Dan

Thank you for your recommendation, then.

This is an unfunded feature, but if/when I get a chance to implement such I will do so.

Dan