[Numpy-discussion] Bilinear interpolation (numpy only)

Nicolas P. Rougier Nicolas.Rougier at inria.fr
Sat Dec 13 10:53:06 EST 2014


Hi all,

Does anyone has a simple 2D linear interpolation for resizing an image (without scipy) ?

Ideally, something like ```def zoom(Z, ratio): ...``` where Z is a 2D scalar array and ratio the scaling factor.
(I'm currently using ```scipy.ndimage.interpolation.zoom``` but I would like to avoid the scipy dependency)
Thanks.



Nicolas


More information about the NumPy-Discussion mailing list