ehlewis / pixel-sorting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pixel-sorting

A visual take on sorting

This software will take an input image and line my line sort the pixels according to luminosity Seeing as all the sort methods would yield the same result, there is a seeded option. This seed will only sort a portion of the row, leaving more visual artifacts present in the final image

Usage

python pixelsmain.py -sort [bubblesort, selectionsortseed, bubblesortseed, quicksortseed] infile.jpeg

Examples

alt text

Initial input

alt text

Bubble Sort

alt text

Bubble Sort Seeded

Unfinished work

There is a partial implementation to plug in with Blender I'm unsure where I left off on this and it will likely be scrapped

About


Languages

Language:Python 100.0%