[SciPy-User] Transforming an Image for a Curved Surface

Robert Kent rob at gulon.co.uk
Wed Jul 9 11:40:31 EDT 2014


Hi All,

I was wondering if it were possible to use SciPy to manipulate an image such
that when wrapped around a cylindrical object it would appear 'flat'. The
application is a QR code that is to be wrapped around a tube of relatively
small diameter which is making it impossible for reader applications to
decode the url it contains. I am auto-generating the QR codes in python and
adding them to a PDF such that they can be printed on labels for direct
application. I understand the basic maths of how to do this: x/R = sin(s/R)
where x is the orthographic coordinate, s is the 'distorted' coordinate and
R is the radius of the cylinder, I'm just not sure how to apply it to an
image in Python. I would greatly appreciate any help suggestions or examples
(SciPy or otherwise).

Thanks, Rob


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20140709/caf72fa3/attachment.html>


More information about the SciPy-User mailing list