Quad Perspective Transformation
Gabriel Genellina
gagsl-py at yahoo.com.ar
Thu Feb 1 15:21:20 EST 2007
En Thu, 01 Feb 2007 13:46:37 -0300, Kamilche <klachemin at comcast.net>
escribió:
> I have a need to tile a bitmap across an arbitrary quadrilateral, and
> apply perspective to it.
> The Python Imaging Library (PIL) has an undocumented function that
> might work, but I can't figure out how to make it work. You're
> supposed to pass it 8 parameters, a b c d e f g h .
I don't know exactly how it's implemented, but the usual perspective
transformation matrix has exactly 8 non zero parameters. Any text on
computer graphics should cover it. My first hit on Google:
http://bishopw.loni.ucla.edu/AIR5/2Dperspective.html
--
Gabriel Genellina
More information about the Python-list
mailing list