Skip to content

patrickDugan04/complex-image-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}$

About

This is a project that uses complex mathematical functions to modify images in interesting ways

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages