Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44452

Shear image (numpy.ndarray)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <radek.machulka@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.217
X-Spam-Level **
X-Spam-Evidence '*H*': 0.58; '*S*': 0.01; 'pil': 0.09; 'array.': 0.16; 'numpy': 0.16; 'subject:image': 0.16; 'input': 0.22; '(or': 0.24; 'function': 0.29; 'array': 0.29; 'message- id:@mail.gmail.com': 0.30; 'work.': 0.31; 'could': 0.34; 'subject: (': 0.35; 'anybody': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'thanks': 0.36; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'hope': 0.61; 'such': 0.63; 'skip:n 10': 0.64; 'provide': 0.64; 'different': 0.65; 'hand': 0.80; 'subject:skip:n 10': 0.84; 'trick.': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=yRT3Bzrri23tDbyQyLuXRZYmYeOYvRoHU4Wbv87t4wo=; b=hbFrdSoOuQIcb0qr53tUgz+8MflkVFNBEhTQufOGMgCFaoSM3DFJDFcpuav5Jf7Tj9 W7F2lDzoUQG8oBu7Mutw7vf0S/ngPQrb0U93L2C8Rd64jLBIxCybpSXUSG/BIbwhfJMr XDIEJPH5rsJJR5+/hVhd/uSvlAH6RZvXjAjgM8tIFaUDSxzqa+aoqDzZdbGgz4deW7Px SVBX3+eQNhnxMDSV41aMtSAXSyye1v+ikES6Qx3sjq3FXJ04s7j2/wtWRmgS4MIxQ/hW Ru6ugAwkv0mUC9Eaibb5nP+G7OS6IAR92nF1B0NcA3oPfhlgkug6bPmivT2dk6gEsgHD nAxQ==
MIME-Version 1.0
X-Received by 10.42.204.79 with SMTP id fl15mr26009357icb.57.1367063163069; Sat, 27 Apr 2013 04:46:03 -0700 (PDT)
Date Sat, 27 Apr 2013 13:46:02 +0200
Subject Shear image (numpy.ndarray)
From Radek Machulka <radek.machulka@gmail.com>
To python-list@python.org
Content-Type multipart/alternative; boundary=20cf303ddba638713e04db5632e8
X-Mailman-Approved-At Sat, 27 Apr 2013 14:54:08 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1128.1367067249.3114.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1367067249 news.xs4all.nl 15927 [2001:888:2000:d::a6]:34674
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:44452

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Shear image (numpy.ndarray) Radek Machulka <radek.machulka@gmail.com> - 2013-04-27 13:46 +0200

csiph-web