Issues with 2D-Interpolation in Scipy
问题 In my application, the data data is sampled on a distorted grid, and I would like to resample it to a nondistorted grid. In order to test this, I wrote this program with examplary distortions and a simple function as data: from __future__ import division import numpy as np import scipy.interpolate as intp import pylab as plt # Defining some variables: quadratic = -3/128 linear = 1/16 pn = np.poly1d([quadratic, linear,0]) pixels_x = 50 pixels_y = 30 frame = np.zeros((pixels_x,pixels_y)) x