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.
Posts: 45
Joined: 2013-12-13T11:13:29-07:00
Authentication code: 6789

image distortion with conformal maps

Post by gubach »

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: 13034
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: image distortion with conformal maps

Post by snibgo »

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: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image distortion with conformal maps

Post by fmw42 »

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.