[Numpy-discussion] Bilinear interpolation (numpy only)

2014-12-13 Thread Nicolas P. Rougier
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 avo

Re: [Numpy-discussion] Question about dtype

2014-12-13 Thread Eelco Hoogendoorn
This is a general problem in trying to use JSON to send arbitrary python objects. Its not made for that purpose, JSON itself only supports a very limited grammar (only one sequence type for instance, as you noticed), so in general you will need to specify your own encoding/decoding for more complex

Re: [Numpy-discussion] Question about dtype

2014-12-13 Thread Sebastian
Hi, I'll just comment on the creation of your dtype: > dt = [(">> dt = [(">> dty = np.dtype(dt) >>> dty.names ('>> dt = [(">> dty = np.dtype(('>> dty.names ('f0', 'f1') >>> dty.descr [('f0', 'http://mail.scipy.org/mailman/listinfo/numpy-discussion