I have a numpy array which has the following shape: (1, 128, 160, 1).
Now, I have an image which has the shape: (200, 200).
So, I do the following:
orig = np.random.rand(1, 128, 160, 1)
orig = np.squeeze(orig)
Now, what I want to do is take my original array and interpolate it to be of the same size as the input image i.e. (200, 200)
using linear interpolation. I think I have to specify the grid on which the numpy array should be evaluated but I am unable to figure out how to do it.