Re: Shear image (numpy.ndarray)

2013-04-29 Thread Radek Machulka
Yes, I already find that scipy.ndimage.interpolation.affine_transform will solve this (but thank you Robert anyway!). Just for others (if somebody will find this thread): The 'matrix' parameter is transformation matrix for shear transformation. For more detailes see: http://en.wikipedia.org/wiki/S

Re: Shear image (numpy.ndarray)

2013-04-27 Thread Robert Kern
On 2013-04-27 12:46, Radek Machulka wrote: Hi, I am looking for some function that would shear my 2D numpy.ndarray array. Since the numpy (probably) does not provide such a functionality (numpy.roll does not do what I need), I hope the PIL might do the trick. Google give me page that says: 'Thi

Shear image (numpy.ndarray)

2013-04-27 Thread Radek Machulka
Hi, I am looking for some function that would shear my 2D numpy.ndarray array. Since the numpy (probably) does not provide such a functionality (numpy.roll does not do what I need), I hope the PIL might do the trick. Google give me page that says: 'This function (im.transform) can be used to scal