scipy.ndimage.interpolation.zoom

scipy.ndimage.interpolation.zoom(input, zoom, output_type=None, output=None, order=3, mode='constant', cval=0.0, prefilter=True)

Zoom an array.

The array is zoomed using spline interpolation of the requested order. Points outside the boundaries of the input are filled according to the given mode. The parameter prefilter determines if the input is pre- filtered before interpolation, if False it is assumed that the input is already filtered.