I'm making the following call to interp2d
f = interpolate.interp2d(im_xs, im_ys, I)
Here are the dimensions of each of the arguments
im_xs: (120, )
im_ys: (120, )
I: (120, 160)
I would like to pass f a vector of x values and a vector of y values and I expect to get a single dimension output vector containing len(x) == len(y) interpolated values.
values = f(rr, cc)
where
rr: (1332, )
cc: (1332, )
However...
values: (1332, 1332)
I expected to just get a vector of 1332 values because I want to interpolate exactly 1332 coordinates on a 2D grid I.