Please help to make distortion (prospect)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

I would guess you need to use -shear, probably a couple of times on each axis.

http://www.imagemagick.org/script/comma ... .php#shear
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Sorry Bonzo, but shears and rotates, and even Affine Matrix distortions do not work.

That would need at least one non-linear perspective, or trapeziodal distortion, and that is currently not directly probably with IM. IM can only do it by using a general distortion or displacement map, but you have the same problem generating that map as you do for the original problem.

It is however easier when you can define the mathematics to generate the distortion, encoding it into a X and Y distortion image for repeated use.

If you have any ideas for generating such a non-linear distortion, a lot of people would be interested.

Some non-IM solutions include.... Povray, XMorph and expensive graphic manipulation software used commercially. You could also use some photoshop/gimp programs to generate distortion maps, for repeated batch use.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply