插值
Bilinear interpolation would be order=1,
nearest is order=0,
and cubic is the default (order=3).
举例说明
import numpy as np
import scipy.ndimage
x = np.arange(64).reshape(8,8)
print 'Original array:'
print x
print 'Resampled by a factor of 2 with nearest interpolation:'
print scipy.ndimage.zoom(x, 2, order=0)
print 'Resampled by a factor of 2 with bilinear interpolation:'
print scipy.ndimage.zoom(x, 2, order=1)