Shear image (numpy.ndarray)

R

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
scale, translate, rotate, and shear the original image.', however I was not
able to get it work.

So could anybody give me a hand how to use it (or how to shear the image in
different way)?

The input array is 2D (NxM) type numpy.float32.

Thanks
Radek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top