image distortion with conformal maps

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Posts: 37
Joined: 2013-12-13T11:13:29-07:00
Authentication code: 6789

image distortion with conformal maps

Post by gubach » 2016-05-09T11:53:51-07:00

In several occasions I stumbled upon the possibility to distort images with conformal maps
(for example with SeamlessMaker and I experimented with to get maps that might be interesting for distortion.

Is fx expressive enough to define conformal maps (functions with one complex variable)?
Has someone tried this in IM? Some projections are conformal maps ...

Posts: 11710
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: image distortion with conformal maps

Post by snibgo » 2016-05-09T14:02:16-07:00

Yes, however, fx doesn't do complex arithmetic.

Some conformal maps don't even need fx. For example, "-resize 50%".
snibgo's IM pages:

User avatar
Posts: 25044
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image distortion with conformal maps

Post by fmw42 » 2016-11-29T14:41:38-07:00

I have created a script. conformal, at my link below that allow one to do conformal mappings for 7 different complex formulae (expressions). Note it will be slow due to the use of -fx. A 500x500 image should process in about 10-15 seconds.

Post Reply