3
我想重新取样numpy的数组作为建议在这里Resampling a numpy array representing an image但是这种采样将由因子这样做即重新取样和调整numpy的阵列
x = np.arange(9).reshape(3,3)
print scipy.ndimage.zoom(x, 2, order=1)
将创建的(6,6)的形状,但怎么能例如,我在(4,6),(6,8)或(6,10)形状内重新采样一个数组,使其达到最佳逼近?