Skip to content

Translate between two images through individual pixel movements.

Notifications You must be signed in to change notification settings

Stefan-Zukin/pixel_mover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

pixel_mover

The idea behind this project is to translate between one image and another by treating pixels as individual actors. This was motivated by free time and curiosity, but I think it ended up making a pretty interesting effect. You give an input image and a goal image and the program calculates the best way to represent the goal image using the pixels from the input image. Currently this is just based on the grayscale values of the pixels. Then, each pixel is assigned a target coordinate, and the program iterates over each pixel, at each step, the pixel swaps with another in a way that brings it closer to the goal.

This is currently quite slow for larger images. I optimized it a little bit, but there's still more that could be done such as GPU support.

Examples

Alt Text

About

Translate between two images through individual pixel movements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages