Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 787 Bytes

File metadata and controls

35 lines (22 loc) · 787 Bytes

Distorting Images with Complex Algebra

demo gif

how to run

First install PySimpleGUI

pip install PySimpleGUI

Then run map.py

python3 map.py

From there you can select an image (png only) and input a complex function (using z as your variable)

How it works

The program modifies images by interpreting their pixel's cooridinates as complex numbers (x,y) = x + yi

and then passes these cordinates throguh a given complex function, moving the pixel to the output

This provides an intresting way of seeing how these functions behave by looking at how they distort common images

Intresting examples

Rotation $f(z) = z\frac{1 + i}{\sqrt{2}}$

Singularity $f(z) = \frac{1}{10z}$