[SciPy-user] Is there a bicubic interpolation function in scipy?

Stéfan van der Walt stefan@sun.ac...
Wed May 21 02:54:25 CDT 2008

2008/5/21 zhang chi <zhangchipr@gmail.com>:
>    I want to use a bicubic interpolation function to process a image, is
> there a a bicubic interpolation function in scipy?

There are a couple of options available.  In ndimage, you can specify
an `order` parameter to most functions, which determines the order of
the splines used for interpolation, e.g.

x = np.array([1,2,3.])

In `scipy.interpolate`, you also have `interp2d` and
SmoothBivariateSpline (with kx=1,ky=1).

Furthermore, if you need C code I can provide you with either ctypes
or cython examples.


More information about the SciPy-user mailing list