Cylinder2Plane etc

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Cylinder2Plane etc

Post by snibgo »

"+distort" and "-distort" has two methods "Cylinder2Plane" and "Plane2Cylinder". These are not listed on ... hp#distort nor do they appear on "-list distort". Can these be added, please?

These methods and their arguments are described at ... e_distorts

(Anecdote: I have a photo of people that can be approximated as cylinders. I want to unwrap the cylinders, write text within the new boundary, distort the text into a cylinder, and place the text over the original photo so it appears the text was written on the person. I tried to figure out the maths of the two mappings but it didn't quite work. Then I remembered Anthony had a page somewhere on cylinders.

Sadly, these methods don't do quite what I want as the y-displacements are too extreme to model a distant cylinder photographed with a conventional camera. But it gives me enough links to debug my maths.)
snibgo's IM pages:
Post Reply